60 lines
1.6 KiB
Plaintext
60 lines
1.6 KiB
Plaintext
# Template file for 'bitcoin'
|
|
pkgname=bitcoin
|
|
version=0.8.2
|
|
revision=1
|
|
wrksrc="${pkgname}-${version}-linux"
|
|
hostmakedepends="which"
|
|
makedepends="db-devel>=5.3 openssl-devel 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>"
|
|
license="MIT"
|
|
homepage="http://www.bitcoin.org/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-linux.tar.gz"
|
|
checksum=e15d3134f4efd8d60e243c7177edba06ac471619674ca07a42a1dced5f498728
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# XXX -qt subpkg
|
|
makedepends="db-devel>=5.3 openssl-devel boost-devel miniupnpc-devel"
|
|
fi
|
|
|
|
do_build() {
|
|
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 ${makejobs}
|
|
fi
|
|
# daemon
|
|
make ${makejobs} -f makefile.unix -C src CXXFLAGS="$CXXFLAGS -w" USE_UPNP=1
|
|
}
|
|
|
|
do_install() {
|
|
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
|
|
vinstall COPYING 644 usr/share/licenses/$pkgname
|
|
}
|
|
|
|
bitcoin_package() {
|
|
pkg_install() {
|
|
vmove all
|
|
}
|
|
}
|
|
|
|
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
|