2012-07-04 13:31:21 +00:00
|
|
|
# Template file for 'bitcoin'
|
|
|
|
pkgname=bitcoin
|
2015-05-29 09:01:36 +00:00
|
|
|
version=0.10.2
|
2015-08-06 18:55:56 +00:00
|
|
|
revision=4
|
2014-06-17 15:07:29 +00:00
|
|
|
create_wrksrc=yes
|
2015-02-16 19:14:41 +00:00
|
|
|
hostmakedepends="pkg-config yasm"
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="db-devel protobuf-devel libressl-devel boost-devel miniupnpc-devel"
|
2012-07-04 13:31:21 +00:00
|
|
|
short_desc="Bitcoin is a peer-to-peer network based digital currency"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-09-19 15:52:03 +00:00
|
|
|
license="MIT"
|
2012-07-04 13:31:21 +00:00
|
|
|
homepage="http://www.bitcoin.org/"
|
2015-05-13 13:25:18 +00:00
|
|
|
distfiles="https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
|
2015-05-29 09:01:36 +00:00
|
|
|
checksum=cddf96c71d0a35524fde93380981cf0cf0b51441454a3a68b9be491b9239bfec
|
2013-03-19 08:55:08 +00:00
|
|
|
|
2015-08-06 19:12:43 +00: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 07:46:06 +00:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
2013-03-19 08:55:08 +00:00
|
|
|
# XXX -qt subpkg
|
2013-12-15 07:46:06 +00:00
|
|
|
hostmakedepends+=" automoc4"
|
|
|
|
makedepends+=" qt-devel"
|
2014-06-17 15:07:29 +00:00
|
|
|
configure_args+=" --with-gui=qt4"
|
2013-03-19 08:55:08 +00:00
|
|
|
fi
|
2012-07-04 13:31:21 +00:00
|
|
|
|
2014-06-17 15:07:29 +00: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}
|
|
|
|
./configure ${configure_args} --with-incompatible-bdb --with-boost=${XBPS_CROSS_BASE}/usr
|
|
|
|
}
|
2012-07-04 13:31:21 +00:00
|
|
|
do_build() {
|
2014-06-17 15:07:29 +00:00
|
|
|
cd ${pkgname}-${version}
|
|
|
|
make ${makejobs}
|
2012-07-04 13:31:21 +00:00
|
|
|
}
|
|
|
|
do_install() {
|
2015-02-16 19:14:41 +00:00
|
|
|
vbin ${pkgname}-${version}/src/bitcoin-cli
|
2014-07-15 15:06:15 +00:00
|
|
|
vbin ${pkgname}-${version}/src/bitcoind
|
|
|
|
vsconf bitcoin.conf
|
|
|
|
vman bitcoind.1
|
|
|
|
vman bitcoin.conf.5
|
|
|
|
vlicense ${pkgname}-${version}/COPYING
|
2012-07-04 13:31:21 +00:00
|
|
|
}
|
2013-04-12 06:55:23 +00:00
|
|
|
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
2014-06-17 15:07:29 +00:00
|
|
|
|
|
|
|
bitcoin-qt_package() {
|
|
|
|
depends="desktop-file-utils"
|
|
|
|
short_desc+=" - QT GUI"
|
|
|
|
pkg_install() {
|
2014-07-15 15:06:15 +00:00
|
|
|
vbin ${wrksrc}/${sourcepkg}-${version}/src/qt/bitcoin-qt
|
2014-06-17 15:07:29 +00:00
|
|
|
vinstall ${wrksrc}/bitcoin-qt.desktop 644 usr/share/applications
|
|
|
|
vinstall ${wrksrc}/bitcoin128.png 644 usr/share/pixmaps
|
2013-04-12 06:55:23 +00:00
|
|
|
}
|
2014-06-17 15:07:29 +00:00
|
|
|
}
|
|
|
|
|
2013-04-12 06:55:23 +00:00
|
|
|
fi # !CROSS_BUILD
|