2012-07-04 15:31:21 +02:00
|
|
|
# Template file for 'bitcoin'
|
|
|
|
pkgname=bitcoin
|
2013-09-13 16:14:52 +02:00
|
|
|
version=0.8.5
|
2013-10-29 11:52:58 +01:00
|
|
|
revision=2
|
2012-09-19 17:52:03 +02:00
|
|
|
wrksrc="${pkgname}-${version}-linux"
|
2013-03-24 10:21:58 +01:00
|
|
|
hostmakedepends="which"
|
2013-10-29 11:52:58 +01:00
|
|
|
makedepends="db-devel>=5.3 openssl-devel qt-devel boost-devel>=1.54 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"
|
2013-09-13 16:14:52 +02:00
|
|
|
checksum=84543f10de5e82ce6e88dd5a501db37c6327edf79a2a04f29199c24843e71f63
|
2013-03-19 09:55:08 +01:00
|
|
|
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-03-19 09:55:08 +01:00
|
|
|
# XXX -qt subpkg
|
2013-05-09 16:26:34 +02:00
|
|
|
makedepends="db-devel>=5.3 openssl-devel boost-devel miniupnpc-devel"
|
2013-03-19 09:55:08 +01:00
|
|
|
fi
|
2012-07-04 15:31:21 +02:00
|
|
|
|
|
|
|
do_build() {
|
2012-09-19 17:52:03 +02:00
|
|
|
cd src
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
2013-03-19 09:55:08 +01:00
|
|
|
# qt gui
|
2013-03-19 10:45:21 +01:00
|
|
|
qmake
|
|
|
|
# XXX wtf??? leveldb inherits this value and errors out
|
|
|
|
sed -e "s|ar cqs|ar|g" -i Makefile
|
2013-10-29 12:05:20 +01:00
|
|
|
make
|
2013-03-19 09:55:08 +01:00
|
|
|
fi
|
2012-07-04 15:31:21 +02:00
|
|
|
# daemon
|
2013-10-29 12:05:20 +01:00
|
|
|
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
|
|
|
|
}
|
2013-04-12 08:55:23 +02:00
|
|
|
|
|
|
|
bitcoin_package() {
|
|
|
|
pkg_install() {
|
2013-05-09 16:26:34 +02:00
|
|
|
vmove all
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
2013-05-09 16:26:34 +02:00
|
|
|
|
|
|
|
bitcoin-qt_package() {
|
|
|
|
depends="desktop-file-utils"
|
2013-05-09 17:31:50 +02:00
|
|
|
short_desc+=" - QT GUI"
|
2013-05-09 16:26:34 +02:00
|
|
|
pkg_install() {
|
2013-05-09 17:31:50 +02:00
|
|
|
vinstall ${wrksrc}/src/bitcoin-qt 755 usr/bin
|
|
|
|
vinstall ${wrksrc}/src/contrib/debian/bitcoin-qt.desktop 644 usr/share/applications
|
2013-05-30 10:47:40 +02:00
|
|
|
vinstall ${wrksrc}/src/share/pixmaps/bitcoin64.xpm 644 usr/share/pixmaps
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|
2013-05-09 16:26:34 +02:00
|
|
|
}
|
|
|
|
|
2013-04-12 08:55:23 +02:00
|
|
|
fi # !CROSS_BUILD
|