# $Id: PKGBUILD 105855 2014-02-16 14:27:32Z bpiotrowski $ # Maintainer: Timothy Redaelli # Contributor: shahid pkgbase=bitcoin pkgname=('bitcoin-daemon' 'bitcoin-qt') pkgver=0.8.6 pkgrel=2 arch=('i686' 'x86_64') url="http://www.bitcoin.org/" makedepends=('boost' 'automoc4' 'qrencode' 'miniupnpc') license=('MIT') source=(http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-$pkgver/bitcoin-$pkgver-linux.tar.gz) sha256sums=('73495de53d1a30676884961e39ff46c3851ff770eeaa767331d065ff0ce8dd0c') build() { cd "$srcdir/$pkgbase-$pkgver-linux/src" # and make qt gui qmake-qt4 USE_QRCODE=1 make # make bitcoind make -f makefile.unix -C src CXXFLAGS="$CXXFLAGS" } package_bitcoin-qt() { pkgdesc="Bitcoin is a peer-to-peer network based digital currency - Qt" depends=(boost-libs qt4 miniupnpc qrencode) install=bitcoin-qt.install cd "$srcdir/$pkgbase-$pkgver-linux/src" install -Dm755 bitcoin-qt "$pkgdir"/usr/bin/bitcoin-qt install -Dm644 contrib/debian/bitcoin-qt.desktop \ "$pkgdir"/usr/share/applications/bitcoin.desktop install -Dm644 share/pixmaps/bitcoin128.png \ "$pkgdir"/usr/share/pixmaps/bitcoin128.png install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" } package_bitcoin-daemon() { pkgdesc="Bitcoin is a peer-to-peer network based digital currency - daemon" depends=(boost-libs miniupnpc openssl) cd "$srcdir/$pkgbase-$pkgver-linux/src" install -Dm755 src/bitcoind "$pkgdir"/usr/bin/bitcoind install -Dm644 contrib/debian/examples/bitcoin.conf \ "$pkgdir/usr/share/doc/$pkgname/examples/bitcoin.conf" install -Dm644 contrib/debian/manpages/bitcoind.1 \ "$pkgdir"/usr/share/man/man1/bitcoind.1 install -Dm644 contrib/debian/manpages/bitcoin.conf.5 \ "$pkgdir"/usr/share/man/man5/bitcoin.conf.5 install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" }