diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2016-09-04 20:35:24 +0000 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-08 21:53:22 +0200 |
commit | 9be33aa809af1a7bb2abfa32a27aec44c041dcdf (patch) | |
tree | a38975c84000e1e754044462e11b9c78842c6ac9 /community/bitcoin | |
parent | 575977afa9435613f358e1c6fec68bbcda430d93 (diff) | |
download | aports-9be33aa809af1a7bb2abfa32a27aec44c041dcdf.tar.bz2 aports-9be33aa809af1a7bb2abfa32a27aec44c041dcdf.tar.xz |
community/bitcoin: update 0.13.0
https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.13.0.md
Diffstat (limited to 'community/bitcoin')
-rw-r--r-- | community/bitcoin/APKBUILD | 65 | ||||
-rw-r--r-- | community/bitcoin/bitcoin.initd | 2 |
2 files changed, 31 insertions, 36 deletions
diff --git a/community/bitcoin/APKBUILD b/community/bitcoin/APKBUILD index 59101b5005..7be66f572a 100644 --- a/community/bitcoin/APKBUILD +++ b/community/bitcoin/APKBUILD @@ -1,38 +1,27 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Stuart Cardall <developer@it-offshore.co.uk> pkgname=bitcoin -pkgver=0.13.0_rc2 +pkgver=0.13.0 _ver=${pkgver/_/} pkgrel=1 pkgdesc="decentralized P2P electronic cash system" url="http://www.bitcoin.org/" arch="all" license="MIT" -depends_dev="" -makedepends="$depends_dev autoconf automake libtool boost-dev openssl-dev db-dev miniupnpc-dev qt5-qtbase-dev - qt5-qttools-dev protobuf-dev libqrencode-dev libevent-dev chrpath" +makedepends="autoconf automake libtool boost-dev openssl-dev db-dev miniupnpc-dev + qt5-qtbase-dev qt5-qttools-dev protobuf-dev libqrencode-dev libevent-dev chrpath" install="$pkgname.post-install $pkgname.pre-install" -subpackages="$pkgname-dev $pkgname-qt $pkgname-cli $pkgname-tx $pkgname-tests" +subpackages="$pkgname-dev $pkgname-qt $pkgname-cli $pkgname-tx $pkgname-tests $pkgname-bench" source="$pkgname-$_ver.tar.gz::https://github.com/bitcoin/bitcoin/archive/v${_ver}.tar.gz ssize_t.patch $pkgname.initd $pkgname.conf " - -_builddir="$srcdir"/bitcoin-$_ver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done - ./autogen.sh -} +builddir="$srcdir/bitcoin-$_ver" build() { - cd "$_builddir" + cd "$builddir" + ./autogen.sh ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -49,7 +38,7 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" make install DESTDIR="$pkgdir" || return 1 install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1 install -m600 -D "$srcdir"/$pkgname.conf "$pkgdir"/etc/$pkgname.conf || return 1 @@ -59,27 +48,33 @@ package() { qt() { pkgdesc="Bitcoin with a Qt frontend & QR Code support" mkdir -p "$subpkgdir"/usr/bin - mv "$pkgdir"/usr/bin/bitcoin-qt "$subpkgdir"/usr/bin/ || return 1 + mv "$pkgdir"/usr/bin/$pkgname-qt "$subpkgdir"/usr/bin/ || return 1 } cli() { pkgdesc="Bitcoin CLI" mkdir -p "$subpkgdir"/usr/bin - mv "$pkgdir"/usr/bin/bitcoin-cli "$subpkgdir"/usr/bin/ || return 1 + mv "$pkgdir"/usr/bin/$pkgname-cli "$subpkgdir"/usr/bin/ || return 1 } tx() { - pkgdesc="Bitcoin TX (Transaction Tool)" - mkdir -p "$subpkgdir"/usr/bin - mv "$pkgdir"/usr/bin/bitcoin-tx "$subpkgdir"/usr/bin/ || return 1 + pkgdesc="Bitcoin TX (Transaction Tool)" + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/$pkgname-tx "$subpkgdir"/usr/bin/ || return 1 } tests() { - pkgdesc="Bitcoin & Bitcoin-QT Unit Tests)" - mkdir -p "$subpkgdir"/usr/bin - chrpath -d "$pkgdir"/usr/bin/test_bitcoin || return 1 - mv "$pkgdir"/usr/bin/test_bitcoin-qt "$subpkgdir"/usr/bin/ || return 1 - mv "$pkgdir"/usr/bin/test_bitcoin "$subpkgdir"/usr/bin/ || return 1 + pkgdesc="Bitcoin & Bitcoin-QT Unit Tests)" + mkdir -p "$subpkgdir"/usr/bin + chrpath -d "$pkgdir"/usr/bin/test_$pkgname || return 1 + mv "$pkgdir"/usr/bin/test_$pkgname-qt "$subpkgdir"/usr/bin/ || return 1 + mv "$pkgdir"/usr/bin/test_$pkgname "$subpkgdir"/usr/bin/ || return 1 +} + +bench() { + pkgdesc="Bitcoin Benchmarking Tools)" + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/bench_$pkgname "$subpkgdir"/usr/bin/ || return 1 } dev() { @@ -88,15 +83,15 @@ dev() { mv "$pkgdir"/usr/include "$subpkgdir"/usr/ || return 1 } -md5sums="f85ff5ce0dd0253e07179bc5a562e128 bitcoin-0.13.0rc2.tar.gz +md5sums="1cee144c1a359d0f202be401744f9be7 bitcoin-0.13.0.tar.gz 716a88e668729e89d3eb929da86f7f04 ssize_t.patch -70a29202a5fa77e50e92083b014909c9 bitcoin.initd +fc93c580823d65a7f50c2518f0b63a4b bitcoin.initd 3e9b4a37bb46e6cd83b6824870c58484 bitcoin.conf" -sha256sums="163d2b6af8b34a200d884a89a678cb9f12269f596bcaa37da28bd68f06d1c85b bitcoin-0.13.0rc2.tar.gz +sha256sums="852581d21716b74e0539f7fd2f9c17f5506f1c21c5cec6642b0286823ba97193 bitcoin-0.13.0.tar.gz f0a094c7b374338ad153ee06b7dd2369dad6b97b1f1bb0252da12c9aaace5321 ssize_t.patch -432b769f9e7cc2e728d72dd38c20ef54132da4a36134988e3401c8451f31bc42 bitcoin.initd +0103f6961e0c9dd0ac73f6bce4d8035103c13db717391d6b56c0db8118dcfae9 bitcoin.initd b7a31bf251f1011ab6584b610acac8494612c2012e9771985228c36c08a315ac bitcoin.conf" -sha512sums="bc7b87e2d3acaba46159e4b8a360adc5efa0bf7cc75dfa7a653cb4099efe7325304ebed8774ee8da9d380f548dbdc94e407c693d54ecf85cb076be9405350c64 bitcoin-0.13.0rc2.tar.gz +sha512sums="86ca3bacb2861d6dfec72718c976d78c1cc5f4f9b3e891b038f5ee7cb07839942ade6f19e93133be2c9b03e411665eb5b2521209f2fd2b5fa785a531bd9c09cc bitcoin-0.13.0.tar.gz 98aa5ad81bdb4ae961b791bc978c39117cdf2d83c2181f92bebbb0db107d9b6e86eda265fb3f93ff8a5ca8a7754d7148818b98095d57201dff9363d60b97e7dd ssize_t.patch -cb2454c353014213bd25fbb938affe79639aa82542c560eaa910e4d9fc01d1cbfec6d8ff004aab9a123ca62e26ed2ebeb264b052a36d3d7154758061065664ab bitcoin.initd +87547359fe75d88906f8ea38ac3e40f7501779983d53d5e05fc8b29e0062e8b67f18dc587045c8699da9ffe57c55aa43c38de389a5476ddf1223bf90b78f4fe3 bitcoin.initd 48abce0f0a5b088c957aa5cb2bcf9bb520593caa7a20019bdf785e43f7d2459968240d4529dfa30be2fca92891bf50c1253a513530511e99d8ee471d9ff6bd95 bitcoin.conf" diff --git a/community/bitcoin/bitcoin.initd b/community/bitcoin/bitcoin.initd index 393ea45374..6660605adb 100644 --- a/community/bitcoin/bitcoin.initd +++ b/community/bitcoin/bitcoin.initd @@ -9,7 +9,7 @@ user=bitcoin group=bitcoin ## supercedes datadir set in $config ## datadir=/var/lib/bitcoin -pidfile=/var/run/bitcoin/$name.pid +pidfile=/run/bitcoin/$name.pid depend() { need net |