summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2017-03-08 08:48:42 -0800
committerAndy Weidenbaum2017-03-08 08:48:42 -0800
commitbb5511ac0fc717af21576bfbd14d25c78b9adaf5 (patch)
treecb2384fb31a861133c12384806b0ecc427ed3a6e
downloadaur-bb5511ac0fc717af21576bfbd14d25c78b9adaf5.tar.gz
Initial import
-rw-r--r--.SRCINFO35
-rw-r--r--PKGBUILD71
2 files changed, 106 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..96df08feb35
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,35 @@
+# Generated by mksrcinfo v8
+# Wed Mar 8 16:48:12 UTC 2017
+pkgbase = libbitcoin-system
+ pkgdesc = Bitcoin Cross-Platform C++ Development Toolkit
+ pkgver = 3.0.0
+ pkgrel = 1
+ url = https://github.com/libbitcoin/libbitcoin
+ arch = i686
+ arch = x86_64
+ groups = libbitcoin
+ license = AGPL3
+ makedepends = autoconf
+ makedepends = automake
+ makedepends = gcc
+ makedepends = git
+ makedepends = libtool
+ makedepends = m4
+ makedepends = make
+ makedepends = pkg-config
+ depends = boost
+ depends = boost-libs
+ depends = icu
+ depends = libpng
+ depends = libsecp256k1
+ depends = qrencode
+ provides = libbitcoin
+ provides = libbitcoin-system
+ conflicts = libbitcoin
+ source = libbitcoin-system-3.0.0.tar.gz::https://codeload.github.com/libbitcoin/libbitcoin-system/tar.gz/v3.0.0
+ source = git+https://github.com/libbitcoin/libbitcoin.wiki
+ sha256sums = a59cecfd97b9b0db3bf46377cee8e5c59df343a327f548bbb9db47fb07a26777
+ sha256sums = SKIP
+
+pkgname = libbitcoin-system
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e0024c2f83f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,71 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+# Contributor: Dave Reisner <d@falconindy.com>
+# Contributor: William Giokas (KaiSforza) <1007380@gmail.com>
+
+pkgname=libbitcoin-system
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="Bitcoin Cross-Platform C++ Development Toolkit"
+arch=('i686' 'x86_64')
+depends=('boost'
+ 'boost-libs'
+ 'icu'
+ 'libpng'
+ 'libsecp256k1'
+ 'qrencode')
+makedepends=('autoconf'
+ 'automake'
+ 'gcc'
+ 'git'
+ 'libtool'
+ 'm4'
+ 'make'
+ 'pkg-config')
+groups=('libbitcoin')
+url="https://github.com/libbitcoin/libbitcoin"
+license=('AGPL3')
+source=($pkgname-$pkgver.tar.gz::https://codeload.github.com/libbitcoin/$pkgname/tar.gz/v$pkgver
+ git+https://github.com/libbitcoin/libbitcoin.wiki)
+sha256sums=('a59cecfd97b9b0db3bf46377cee8e5c59df343a327f548bbb9db47fb07a26777'
+ 'SKIP')
+provides=('libbitcoin' 'libbitcoin-system')
+conflicts=('libbitcoin')
+
+build() {
+ cd "$srcdir/libbitcoin-$pkgver"
+
+ msg2 'Building...'
+ ./autogen.sh
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --libexecdir=/usr/lib/libbitcoin \
+ --sysconfdir=/etc \
+ --sharedstatedir=/usr/share/libbitcoin \
+ --localstatedir=/var/lib/libbitcoin \
+ --with-icu \
+ --with-png \
+ --with-qrencode \
+ --with-gnu-ld \
+ --without-examples \
+ --without-tests
+ make -j$(($(nproc)/2))
+}
+
+package() {
+ cd "$srcdir/libbitcoin-$pkgver"
+
+ msg2 'Installing license...'
+ install -Dm 644 COPYING -t "$pkgdir/usr/share/licenses/libbitcoin"
+
+ msg2 'Installing...'
+ make DESTDIR="$pkgdir" install
+
+ msg2 'Installing documentation...'
+ cp -dpr --no-preserve=ownership "$srcdir/libbitcoin.wiki" \
+ "$pkgdir/usr/share/doc/libbitcoin/wiki"
+
+ msg2 'Cleaning up pkgdir...'
+ find "$pkgdir" -type d -name .git -exec rm -r '{}' +
+ find "$pkgdir" -type f -name .gitignore -exec rm -r '{}' +
+}