void-packages/srcpkgs/bitcoin/template

53 lines
1.6 KiB
Plaintext
Raw Normal View History

2012-07-04 15:31:21 +02:00
# Template file for 'bitcoin'
pkgname=bitcoin
2013-12-15 08:46:06 +01:00
version=0.8.6
revision=1
2012-09-19 17:52:03 +02:00
wrksrc="${pkgname}-${version}-linux"
hostmakedepends="which"
2013-12-15 08:46:06 +01:00
makedepends="db-devel>=5.3 openssl-devel boost-devel>=1.54 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"
2013-12-15 08:46:06 +01:00
checksum=73495de53d1a30676884961e39ff46c3851ff770eeaa767331d065ff0ce8dd0c
2013-12-15 08:46:06 +01:00
if [ -z "$CROSS_BUILD" ]; then
# XXX -qt subpkg
2013-12-15 08:46:06 +01:00
hostmakedepends+=" automoc4"
makedepends+=" qt-devel"
fi
2012-07-04 15:31:21 +02:00
do_build() {
2012-09-19 17:52:03 +02:00
cd src
if [ -z "$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
fi
2012-07-04 15:31:21 +02:00
# daemon
make -f makefile.unix -C src CXXFLAGS="$CXXFLAGS -w" 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
}
if [ -z "$CROSS_BUILD" ]; then
bitcoin-qt_package() {
depends="desktop-file-utils"
short_desc+=" - QT GUI"
pkg_install() {
vinstall ${wrksrc}/src/bitcoin-qt 755 usr/bin
vinstall ${wrksrc}/src/contrib/debian/bitcoin-qt.desktop 644 usr/share/applications
vinstall ${wrksrc}/src/share/pixmaps/bitcoin64.xpm 644 usr/share/pixmaps
}
}
fi # !CROSS_BUILD