void-packages/srcpkgs/bitcoin/template

30 lines
973 B
Text
Raw Normal View History

2012-07-04 13:31:21 +00:00
# Template file for 'bitcoin'
pkgname=bitcoin
2013-02-22 15:30:15 +00:00
version=0.8.0
2012-07-04 13:31:21 +00:00
revision=1
2012-09-19 15:52:03 +00:00
wrksrc="${pkgname}-${version}-linux"
2012-07-04 13:31:21 +00:00
subpackages="bitcoin-qt"
makedepends="which qt-devel boost-devel automoc4 miniupnpc-devel"
short_desc="Bitcoin is a peer-to-peer network based digital currency"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-09-19 15:52:03 +00:00
license="MIT"
2012-07-04 13:31:21 +00:00
homepage="http://www.bitcoin.org/"
2012-09-19 15:52:03 +00:00
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-linux.tar.gz"
2013-02-22 15:30:15 +00:00
checksum=e31529147d307b2240e08af3a5a4606fe2c112d1b0e91e3cce4a2bac2583cecc
2012-07-04 13:31:21 +00:00
do_build() {
2012-09-19 15:52:03 +00:00
cd src
2012-07-04 13:31:21 +00:00
# qt gui
qmake && make ${makejobs}
# daemon
make -f makefile.unix -C src ${makejobs} USE_UPNP=1
}
do_install() {
2012-09-19 15:52:03 +00: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 13:31:21 +00:00
vinstall COPYING 644 usr/share/licenses/$pkgname
}