2012-07-04 15:31:21 +02:00
|
|
|
# Template file for 'bitcoin'
|
|
|
|
pkgname=bitcoin
|
2016-04-23 07:31:43 +02:00
|
|
|
version=0.12.1
|
|
|
|
revision=1
|
2014-06-17 17:07:29 +02:00
|
|
|
create_wrksrc=yes
|
2015-02-16 20:14:41 +01:00
|
|
|
hostmakedepends="pkg-config yasm"
|
2016-03-03 14:22:26 +01:00
|
|
|
makedepends="db-devel protobuf-devel boost-devel miniupnpc-devel libevent-devel qrencode-devel"
|
2012-07-04 15:31:21 +02:00
|
|
|
short_desc="Bitcoin is a peer-to-peer network based digital currency"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-09-19 17:52:03 +02:00
|
|
|
license="MIT"
|
2016-03-03 14:22:26 +01:00
|
|
|
homepage="https://bitcoin.org/"
|
2015-05-13 15:25:18 +02:00
|
|
|
distfiles="https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
|
2016-04-23 07:31:43 +02:00
|
|
|
checksum=08fc3b6c05c39fb975bba1f6dd49992df46511790ce8dc67398208af9565e199
|
2013-03-19 09:55:08 +01:00
|
|
|
|
2015-08-06 21:12:43 +02:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
*-musl) broken="http://build.voidlinux.eu/builders/armv6l-musl_builder/builds/2804/steps/shell_3/logs/stdio";;
|
|
|
|
esac
|
|
|
|
|
2013-12-15 08:46:06 +01:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
2013-03-19 09:55:08 +01:00
|
|
|
# XXX -qt subpkg
|
2016-02-19 18:45:09 +01:00
|
|
|
makedepends+=" qt5-devel qt5-tools-devel"
|
|
|
|
configure_args+=" --with-gui"
|
2013-03-19 09:55:08 +01:00
|
|
|
fi
|
2012-07-04 15:31:21 +02:00
|
|
|
|
2014-06-17 17:07:29 +02:00
|
|
|
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}/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}
|
2016-03-25 22:34:52 +01:00
|
|
|
|
2016-02-19 18:45:09 +01:00
|
|
|
./configure ${configure_args} \
|
|
|
|
--with-incompatible-bdb \
|
|
|
|
--disable-ccache \
|
|
|
|
--disable-static \
|
|
|
|
--enable-hardening \
|
|
|
|
--with-boost=${XBPS_CROSS_BASE}/usr
|
2014-06-17 17:07:29 +02:00
|
|
|
}
|
2012-07-04 15:31:21 +02:00
|
|
|
do_build() {
|
2014-06-17 17:07:29 +02:00
|
|
|
cd ${pkgname}-${version}
|
|
|
|
make ${makejobs}
|
2012-07-04 15:31:21 +02:00
|
|
|
}
|
|
|
|
do_install() {
|
2015-02-16 20:14:41 +01:00
|
|
|
vbin ${pkgname}-${version}/src/bitcoin-cli
|
2014-07-15 17:06:15 +02:00
|
|
|
vbin ${pkgname}-${version}/src/bitcoind
|
|
|
|
vsconf bitcoin.conf
|
|
|
|
vman bitcoind.1
|
|
|
|
vman bitcoin.conf.5
|
|
|
|
vlicense ${pkgname}-${version}/COPYING
|
2012-07-04 15:31:21 +02:00
|
|
|
}
|
2013-04-12 08:55:23 +02:00
|
|
|
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
2014-06-17 17:07:29 +02:00
|
|
|
|
|
|
|
bitcoin-qt_package() {
|
|
|
|
depends="desktop-file-utils"
|
|
|
|
short_desc+=" - QT GUI"
|
|
|
|
pkg_install() {
|
2014-07-15 17:06:15 +02:00
|
|
|
vbin ${wrksrc}/${sourcepkg}-${version}/src/qt/bitcoin-qt
|
2014-06-17 17:07:29 +02:00
|
|
|
vinstall ${wrksrc}/bitcoin-qt.desktop 644 usr/share/applications
|
|
|
|
vinstall ${wrksrc}/bitcoin128.png 644 usr/share/pixmaps
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|
2014-06-17 17:07:29 +02:00
|
|
|
}
|
|
|
|
|
2013-04-12 08:55:23 +02:00
|
|
|
fi # !CROSS_BUILD
|