bitcoin: update to 0.15.1.

Closes #9138.
This commit is contained in:
maxice8 2017-11-12 22:07:59 -02:00 committed by Enno Boland
parent a0698c5a80
commit 4dffe53cb1
3 changed files with 33 additions and 25 deletions

View File

@ -2005,7 +2005,6 @@ libcvm-v2client.so.1 cvm-0.97_1
libudns.so.0 udns-0.4_1 libudns.so.0 udns-0.4_1
libcriu.so.1 criu-1.5.1_2 libcriu.so.1 criu-1.5.1_2
libwebsockets.so.12 libwebsockets-2.4.0_1 libwebsockets.so.12 libwebsockets-2.4.0_1
libbitcoinconsensus.so.0 litecoin-0.10.1.2_1
libnfc.so.0 libnfc-1.7.1_1 libnfc.so.0 libnfc-1.7.1_1
libfuzzy.so.2 libfuzzy-2.12_1 libfuzzy.so.2 libfuzzy-2.12_1
libSDL_gfx.so.15 SDL_gfx-2.0.25_2 libSDL_gfx.so.15 SDL_gfx-2.0.25_2

1
srcpkgs/bitcoin-devel Symbolic link
View File

@ -0,0 +1 @@
bitcoin

View File

@ -1,8 +1,9 @@
# Template file for 'bitcoin' # Template file for 'bitcoin'
pkgname=bitcoin pkgname=bitcoin
version=0.15.0.1 version=0.15.1
revision=1 revision=1
create_wrksrc=yes build_style=gnu-configure
configure_args="--with-incompatible-bdb --disable-ccache --disable-static --enable-hardening --with-boost=${XBPS_CROSS_BASE}/usr"
hostmakedepends="pkg-config yasm" hostmakedepends="pkg-config yasm"
makedepends="db-devel protobuf-devel boost-devel miniupnpc-devel libevent-devel qrencode-devel" makedepends="db-devel protobuf-devel boost-devel miniupnpc-devel libevent-devel qrencode-devel"
short_desc="Bitcoin is a peer-to-peer network based digital currency" short_desc="Bitcoin is a peer-to-peer network based digital currency"
@ -10,7 +11,8 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT" license="MIT"
homepage="https://bitcoin.org/" homepage="https://bitcoin.org/"
distfiles="https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz" distfiles="https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
checksum=b57e9e756018e4082f5557a4216195b0cd197c5a62473b6fe0509a0aa71e519b checksum=34de2dbe058c1f8b6464494468ebe2ff0422614203d292da1c6458d6f87342b4
conflicts="litecoin>=0" # Both provide libbitcoinconsensus.so.0
if [ -z "$CROSS_BUILD" ]; then if [ -z "$CROSS_BUILD" ]; then
# XXX -qt subpkg # XXX -qt subpkg
@ -28,27 +30,31 @@ pre_configure() {
$XBPS_FETCH_CMD $f $XBPS_FETCH_CMD $f
done done
} }
do_configure() {
cd ${pkgname}-${version%.*}
./configure ${configure_args} \ do_check() {
--with-incompatible-bdb \ make check
--disable-ccache \
--disable-static \
--enable-hardening \
--with-boost=${XBPS_CROSS_BASE}/usr
} }
do_build() {
cd ${pkgname}-${version%.*} post_install() {
make ${makejobs} rm "${DESTDIR}"/usr/bin/test_bitcoin
rm "${DESTDIR}"/usr/bin/bench_bitcoin
if [ -z "$CROSS_BUILD" ]; then
rm "${DESTDIR}"/usr/bin/test_bitcoin-qt
fi
vlicense COPYING
}
bitcoin-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vdoc doc/shared-libraries.md # Provides information on libbitcoinconsensus
} }
do_install() {
vbin ${pkgname}-${version%.*}/src/bitcoin-cli
vbin ${pkgname}-${version%.*}/src/bitcoind
vbin ${pkgname}-${version%.*}/src/bitcoin-tx
vsconf bitcoin.conf
vman bitcoind.1
vlicense ${pkgname}-${version%.*}/COPYING
} }
if [ -z "$CROSS_BUILD" ]; then if [ -z "$CROSS_BUILD" ]; then
@ -57,9 +63,11 @@ bitcoin-qt_package() {
depends="desktop-file-utils" depends="desktop-file-utils"
short_desc+=" - QT GUI" short_desc+=" - QT GUI"
pkg_install() { pkg_install() {
vbin ${wrksrc}/${sourcepkg}-${version%.*}/src/qt/bitcoin-qt vmove usr/bin/bitcoin-qt
vinstall ${wrksrc}/bitcoin-qt.desktop 644 usr/share/applications vmove usr/share/man/man1/bitcoin-qt.1
vinstall ${wrksrc}/bitcoin128.png 644 usr/share/pixmaps vinstall bitcoin-qt.desktop 644 usr/share/applications
vinstall bitcoin128.png 644 usr/share/pixmaps
vlicense COPYING
} }
} }