void-packages/srcpkgs/bitcoin/template

44 lines
1.3 KiB
Plaintext
Raw Normal View History

2012-07-04 15:31:21 +02:00
# Template file for 'bitcoin'
pkgname=bitcoin
version=0.8.1
revision=2
2012-09-19 17:52:03 +02:00
wrksrc="${pkgname}-${version}-linux"
2012-07-04 15:31:21 +02:00
subpackages="bitcoin-qt"
hostmakedepends="which"
makedepends="db-devel openssl-devel qt-devel boost-devel automoc4 miniupnpc-devel"
2012-07-04 15:31:21 +02:00
short_desc="Bitcoin is a peer-to-peer network based digital currency"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-09-19 17:52:03 +02:00
license="MIT"
2012-07-04 15:31:21 +02:00
homepage="http://www.bitcoin.org/"
2012-09-19 17:52:03 +02:00
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-linux.tar.gz"
checksum=6d7f023a9df1a436c51de83f7cd751f162be9b4fb1c06da05545f9fba7cb2a98
disable_debug=1
if [ "$XBPS_CROSS_BUILD" ]; then
# XXX -qt subpkg
unset subpackages
akedepends="db-devel openssl-devel boost-devel miniupnpc-devel"
fi
2012-07-04 15:31:21 +02:00
do_build() {
2012-09-19 17:52:03 +02:00
cd src
if [ -z "$XBPS_CROSS_BUILD" ]; then
# qt gui
qmake
# XXX wtf??? leveldb inherits this value and errors out
sed -e "s|ar cqs|ar|g" -i Makefile
make ${makejobs}
fi
2012-07-04 15:31:21 +02:00
# daemon
make ${makejobs} -f makefile.unix -C src CXXFLAGS="$CXXFLAGS" USE_UPNP=1
2012-07-04 15:31:21 +02:00
}
do_install() {
2012-09-19 17:52:03 +02:00
vinstall src/src/bitcoind 755 usr/bin
vinstall src/contrib/debian/examples/bitcoin.conf 644 usr/share/examples/$pkgname
vinstall src/contrib/debian/manpages/bitcoind.1 644 usr/share/man/man1
vinstall src/contrib/debian/manpages/bitcoin.conf.5 644 usr/share/man/man5
2012-07-04 15:31:21 +02:00
vinstall COPYING 644 usr/share/licenses/$pkgname
}