void-packages/srcpkgs/bitcoin/template

63 lines
1.9 KiB
Plaintext
Raw Normal View History

2012-07-04 15:31:21 +02:00
# Template file for 'bitcoin'
pkgname=bitcoin
2014-10-05 19:30:18 +02:00
version=0.9.3
revision=1
2014-06-17 17:07:29 +02:00
create_wrksrc=yes
hostmakedepends="which pkg-config"
makedepends="db-devel protobuf-devel libressl-devel boost-devel>=1.54 miniupnpc-devel>=1.9"
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/"
2014-06-17 17:07:29 +02:00
distfiles="http://bitcoin.org/bin/${version}/bitcoin-${version}-linux.tar.gz"
2014-10-05 19:30:18 +02:00
checksum=c425783b6cbab9b801ad6a1dcc9235828b98e5dee6675112741f8b210e4f65cd
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"
2014-06-17 17:07:29 +02:00
configure_args+=" --with-gui=qt4"
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
tar xf ${pkgname}-${version}-linux/src/${pkgname}-${version}.tar.gz -C ${wrksrc}
}
do_configure() {
cd ${pkgname}-${version}
./configure ${configure_args} --with-incompatible-bdb --with-boost=${XBPS_CROSS_BASE}/usr
}
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() {
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
}
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
}
2014-06-17 17:07:29 +02:00
}
fi # !CROSS_BUILD