79 lines
2.5 KiB
Bash
79 lines
2.5 KiB
Bash
# Template file for 'bitcoin'
|
|
pkgname=bitcoin
|
|
version=0.12.0
|
|
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 <xtraeme@voidlinux.eu>"
|
|
license="MIT"
|
|
homepage="https://bitcoin.org/"
|
|
distfiles="https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
|
|
checksum=0f1cda66c841a548a07cc37e80b0727354b1236d9f374c7d44362acdb85eb3e1
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) broken="http://build.voidlinux.eu/builders/armv6l-musl_builder/builds/2804/steps/shell_3/logs/stdio";;
|
|
esac
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
# XXX -qt subpkg
|
|
makedepends+=" qt5-devel qt5-tools-devel"
|
|
configure_args+=" --with-gui"
|
|
fi
|
|
|
|
pre_configure() {
|
|
extra_files="
|
|
https://patch-diff.githubusercontent.com/raw/bitcoin/bitcoin/pull/7520.patch
|
|
https://github.com/AliceWonderMiscreations/bitcoin/commit/8b8c753588652c27b7b7f0d56ef962b28f43ff56.patch
|
|
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}/contrib/debian/manpages/bitcoind.1
|
|
https://raw.github.com/bitcoin/bitcoin/v${version}/contrib/debian/manpages/bitcoin.conf.5"
|
|
for f in ${extra_files}; do
|
|
$XBPS_FETCH_CMD $f
|
|
done
|
|
}
|
|
do_configure() {
|
|
cd ${pkgname}-${version}
|
|
|
|
# The following two patches patches fix an error in release 0.12.0 that avoids
|
|
# building with libressl although it is not even a dependency any more.
|
|
patch -Np1 -i ${wrksrc}/7520.patch
|
|
patch -Np1 -i ${wrksrc}/8b8c753588652c27b7b7f0d56ef962b28f43ff56.patch
|
|
|
|
./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
|
|
vsconf bitcoin.conf
|
|
vman bitcoind.1
|
|
vman bitcoin.conf.5
|
|
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
|