Date: Friday, February 26, 2016 @ 18:12:11 Author: tredaelli Revision: 163508
upgpkg: bitcoin 0.12.0-2 Build also bitcoin-tx and update manpages and example configuration Modified: bitcoin/trunk/PKGBUILD ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++------------ 1 file changed, 34 insertions(+), 12 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-02-26 15:21:24 UTC (rev 163507) +++ PKGBUILD 2016-02-26 17:12:11 UTC (rev 163508) @@ -2,26 +2,28 @@ # Maintainer: Timothy Redaelli <timothy.redae...@gmail.com> # Contributor: shahid <hellla...@gmail.com> +#_dbver=4.8.30 pkgbase=bitcoin -pkgname=('bitcoin-daemon' 'bitcoin-cli' 'bitcoin-qt') +pkgname=('bitcoin-daemon' 'bitcoin-cli' 'bitcoin-qt' 'bitcoin-tx') pkgver=0.12.0 -pkgrel=1 +pkgrel=2 arch=('i686' 'x86_64') url="http://www.bitcoin.org/" makedepends=('boost' 'libevent' 'qt5-base' 'qt5-tools' 'qrencode' 'miniupnpc' 'protobuf') license=('MIT') source=(http://bitcoin.org/bin/bitcoin-core-$pkgver/bitcoin-$pkgver.tar.gz - https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/bitcoin-qt.desktop - https://raw.github.com/bitcoin/bitcoin/v$pkgver/share/pixmaps/bitcoin128.png - https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/examples/bitcoin.conf - https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/manpages/bitcoind.1 - https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/manpages/bitcoin.conf.5) + https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/bitcoin-qt.desktop + https://raw.github.com/bitcoin/bitcoin/v$pkgver/share/pixmaps/bitcoin128.png + https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/examples/bitcoin.conf + https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/manpages/bitcoind.1 + https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/manpages/bitcoin.conf.5) +# http://download.oracle.com/berkeley-db/db-${_dbver}.NC.tar.gz sha256sums=('0f1cda66c841a548a07cc37e80b0727354b1236d9f374c7d44362acdb85eb3e1' 'b65b377c0d9ecae9eea722843bca0add6bdb7e50929a7e1f751b79b6621c6073' 'ad880c8459ecfdb96abe6a4689af06bdd27906e0edcd39d0915482f2da91e722' - '30a30533cc3f2dbaea3ca1fab69e775a2b64aa0c1c510f9639a25910cb80fc4a' - '829d5d38c8c3145b6debcb569bfa75acdfcfab5d914495b56ceb4d02060f130f' - '9acf7f46052f6e508af4f38be4574f34bf0f57d2cf462f072606d3f177b4c957') + 'efe06ab377706338bc75fa1e24de9785950029f3350a17a4b8ce563b760f3c0c' + '7d090ddd485c36d4fae5e6627388c5550f824fd498d5fd958ec999857fff7b28' + '7f4021e34d52c321f679b548fcf6d55b4da30077b7aed392976f048ab88dcdd1') # Upstream should be more coherent! case "$pkgver" in @@ -33,10 +35,19 @@ ;; esac +# TODO: Build using db 4.8.30 +#prepare() { +# mkdir -p db4 +#} + build() { +# cd "db-$_dbver.NC/build_unix" +# ../dist/configure --enable-cxx --disable-shared --with-pic --prefix="$srcdir/db4" +# make +# make install + cd "$srcdir/$pkgbase-$pkgver" - CXXFLAGS="$CXXFLAGS -DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT=1 -UUPNPDISCOVER_SUCCESS" - ./configure --prefix=/usr --with-incompatible-bdb --with-gui=qt5 + ./configure --prefix=/usr --with-gui=qt5 --with-incompatible-bdb #LDFLAGS="-L$srcdir/db4/lib/ $LDFLAGS" CPPFLAGS="-I$srcdir/db4/include/ $CPPFLAGS" make } @@ -78,3 +89,14 @@ install -Dm755 src/bitcoin-cli "$pkgdir"/usr/bin/bitcoin-cli install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" } + +package_bitcoin-tx() { + pkgdesc="Bitcoin is a peer-to-peer network based digital currency - Transaction tool" + depends=(boost-libs openssl) + + cd "$pkgbase-$pkgver" + install -Dm755 src/bitcoin-tx "$pkgdir"/usr/bin/bitcoin-tx + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" +} + +# vim:set ts=2 sw=2 et: