diff options
Diffstat (limited to 'community/bitcoin/PKGBUILD')
-rw-r--r-- | community/bitcoin/PKGBUILD | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/community/bitcoin/PKGBUILD b/community/bitcoin/PKGBUILD index aa75bc061..02e9b2c74 100644 --- a/community/bitcoin/PKGBUILD +++ b/community/bitcoin/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 113294 2014-06-17 09:48:19Z tredaelli $ +# $Id: PKGBUILD 113790 2014-06-30 13:57:31Z tredaelli $ # Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com> # Contributor: shahid <helllamer@gmail.com> pkgbase=bitcoin -pkgname=('bitcoin-daemon' 'bitcoin-qt') -pkgver=0.9.2 +pkgname=('bitcoin-daemon' 'bitcoin-cli' 'bitcoin-qt') +pkgver=0.9.2.1 pkgrel=1 arch=('i686' 'x86_64') url="http://www.bitcoin.org/" @@ -16,20 +16,30 @@ source=(http://bitcoin.org/bin/$pkgver/bitcoin-$pkgver-linux.tar.gz 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) -sha256sums=('58a77aeb4c81b54d3903d85abce4f0fb580694a3611a415c5fe69a27dea5935b' +sha256sums=('0060f7d38b98113ab912d4c184000291d7f026eaf77ca5830deec15059678f54' 'b65b377c0d9ecae9eea722843bca0add6bdb7e50929a7e1f751b79b6621c6073' 'ad880c8459ecfdb96abe6a4689af06bdd27906e0edcd39d0915482f2da91e722' 'e141088b07641e4e58cc750f93bbdda1ca0e8f07262fce66b73524c1ed97480e' '881dcc53ebe2d2a4f8647eb206fd355c69e4186f225e2dcfce19d276381e613a' 'b7b232079027c41061dcfd21bca2054e349e4bed4f233733406bb3d90bd533ec') +# Upstream should be more coherent! +case "$pkgver" in +*.*.*.*) + _pkgver=${pkgver%.*} + ;; +*) + _pkgver=$pkgver + ;; +esac + prepare() { cd "$srcdir/$pkgbase-$pkgver-linux/src" - tar xf $pkgbase-$pkgver.tar.gz + tar xf $pkgbase-$_pkgver.tar.gz } build() { - cd "$srcdir/$pkgbase-$pkgver-linux/src/$pkgbase-$pkgver" + cd "$srcdir/$pkgbase-$pkgver-linux/src/$pkgbase-$_pkgver" ./configure --prefix=/usr --with-incompatible-bdb --with-gui=qt4 make } @@ -39,7 +49,7 @@ package_bitcoin-qt() { depends=(boost-libs qt4 miniupnpc qrencode protobuf) install=bitcoin-qt.install - cd "$srcdir/$pkgbase-$pkgver-linux/src/$pkgbase-$pkgver" + cd "$srcdir/$pkgbase-$pkgver-linux/src/$pkgbase-$_pkgver" install -Dm755 src/qt/bitcoin-qt "$pkgdir"/usr/bin/bitcoin-qt install -Dm644 "$srcdir"/bitcoin-qt.desktop \ "$pkgdir"/usr/share/applications/bitcoin.desktop @@ -53,7 +63,7 @@ package_bitcoin-daemon() { pkgdesc="Bitcoin is a peer-to-peer network based digital currency - daemon" depends=(boost-libs miniupnpc openssl) - cd "$srcdir/$pkgbase-$pkgver-linux/src/$pkgbase-$pkgver" + cd "$srcdir/$pkgbase-$pkgver-linux/src/$pkgbase-$_pkgver" install -Dm755 src/bitcoind "$pkgdir"/usr/bin/bitcoind install -Dm644 "$srcdir"/bitcoin.conf \ "$pkgdir/usr/share/doc/$pkgname/examples/bitcoin.conf" @@ -64,3 +74,11 @@ package_bitcoin-daemon() { install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" } +package_bitcoin-cli() { + pkgdesc="Bitcoin is a peer-to-peer network based digital currency - RPC client" + depends=(boost-libs openssl) + + cd "$srcdir/$pkgbase-$pkgver-linux/src/$pkgbase-$_pkgver" + install -Dm755 src/bitcoin-cli "$pkgdir"/usr/bin/bitcoin-cli + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" +} |