# Template file for 'bitcoin' pkgname=bitcoin version=0.15.0.1 revision=1 create_wrksrc=yes hostmakedepends="pkg-config yasm" 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" maintainer="Juan RP " license="MIT" homepage="https://bitcoin.org/" distfiles="https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz" checksum=b57e9e756018e4082f5557a4216195b0cd197c5a62473b6fe0509a0aa71e519b if [ -z "$CROSS_BUILD" ]; then # XXX -qt subpkg makedepends+=" qt5-devel qt5-tools-devel" configure_args+=" --with-gui" fi pre_configure() { extra_files=" https://raw.github.com/bitcoin/bitcoin/v${version}/contrib/debian/bitcoin-qt.desktop https://raw.github.com/bitcoin/bitcoin/v${version}/share/pixmaps/bitcoin128.png https://raw.github.com/bitcoin/bitcoin/v${version}/contrib/debian/examples/bitcoin.conf https://raw.github.com/bitcoin/bitcoin/v${version}/doc/man/bitcoind.1" for f in ${extra_files}; do $XBPS_FETCH_CMD $f done } do_configure() { cd ${pkgname}-${version%.*} ./configure ${configure_args} \ --with-incompatible-bdb \ --disable-ccache \ --disable-static \ --enable-hardening \ --with-boost=${XBPS_CROSS_BASE}/usr } do_build() { cd ${pkgname}-${version%.*} make ${makejobs} } 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 bitcoin-qt_package() { depends="desktop-file-utils" short_desc+=" - QT GUI" pkg_install() { vbin ${wrksrc}/${sourcepkg}-${version%.*}/src/qt/bitcoin-qt vinstall ${wrksrc}/bitcoin-qt.desktop 644 usr/share/applications vinstall ${wrksrc}/bitcoin128.png 644 usr/share/pixmaps } } fi # !CROSS_BUILD