desktop/bitcoin/PKGBUILD

74 lines
2.8 KiB
Bash
Raw Normal View History

2015-03-21 17:23:38 +08:00
# Contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/bitcoin
2014-04-02 04:53:09 +08:00
2015-03-21 17:23:38 +08:00
pkgbase=bitcoin
pkgname=('bitcoin-daemon' 'bitcoin-cli' 'bitcoin-qt')
2016-11-06 01:30:52 +08:00
pkgver=0.13.1
2016-05-07 11:48:41 +08:00
pkgrel=1
2015-03-30 07:57:35 +08:00
arch=('x86_64')
2014-04-02 04:53:09 +08:00
url="http://www.bitcoin.org/"
2016-02-29 11:03:10 +08:00
makedepends=('boost' 'qrencode' 'miniupnpc' 'protobuf' 'qt5-tools' 'libevent')
2014-04-02 04:53:09 +08:00
license=('MIT')
2015-05-15 18:25:01 +08:00
source=(http://bitcoin.org/bin/bitcoin-core-$pkgver/bitcoin-$pkgver.tar.gz
2014-04-02 04:53:09 +08:00
https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/bitcoin-qt.desktop
https://raw.github.com/bitcoin/bitcoin/v$pkgver/share/pixmaps/bitcoin128.png
https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/examples/bitcoin.conf
https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/manpages/bitcoind.1
https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/manpages/bitcoin.conf.5)
2016-11-06 01:30:52 +08:00
sha1sums=('729ccb5615c4830eba38f79d0d05bb95ee4909b3'
'5d9b2f69071dd87923dbebebdabd4ddbfa80ac19'
'5e5faf2bd4b598a971946e527bca961f17591976'
'6a53aa6624122ce2fda05c2f152cbae59eef6740'
'8d51447f993f438a8b32fa42c5c4ef3d01f3f8fe'
'9ace6f3d4e781f2d16840145eb80571afd5e9c59')
2014-04-02 04:53:09 +08:00
build() {
2015-03-21 17:23:38 +08:00
cd "$srcdir/$pkgbase-$pkgver"
2015-07-13 11:02:28 +08:00
./configure --prefix=/usr \
--with-incompatible-bdb \
--enable-hardening \
--with-gui=qt5
2015-03-21 17:23:38 +08:00
make
}
package_bitcoin-qt() {
pkgdesc="Bitcoin is a peer-to-peer network based digital currency - Qt"
2015-07-13 11:02:28 +08:00
depends=('boost-libs' 'qt5-base' 'miniupnpc' 'qrencode' 'protobuf')
2015-03-21 17:23:38 +08:00
install=bitcoin-qt.install
2015-03-30 07:57:35 +08:00
provides=('bitcoin')
conflicts=('bitcoin')
replaces=('bitcoin')
2015-03-21 17:23:38 +08:00
cd "$pkgbase-$pkgver"
install -Dm755 src/qt/bitcoin-qt "$pkgdir"/usr/bin/bitcoin-qt
install -Dm644 "$srcdir"/bitcoin-qt.desktop \
"$pkgdir"/usr/share/applications/bitcoin.desktop
install -Dm644 "$srcdir"/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"
2016-02-29 11:03:10 +08:00
depends=('boost-libs' 'miniupnpc' 'libevent')
2015-03-21 17:23:38 +08:00
cd "$pkgbase-$pkgver"
install -Dm755 src/bitcoind "$pkgdir"/usr/bin/bitcoind
install -Dm644 "$srcdir"/bitcoin.conf \
"$pkgdir/usr/share/doc/$pkgname/examples/bitcoin.conf"
install -Dm644 "$srcdir"/bitcoind.1 \
"$pkgdir"/usr/share/man/man1/bitcoind.1
install -Dm644 "$srcdir"/bitcoin.conf.5 \
"$pkgdir"/usr/share/man/man5/bitcoin.conf.5
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
package_bitcoin-cli() {
pkgdesc="Bitcoin is a peer-to-peer network based digital currency - RPC client"
2016-02-29 11:03:10 +08:00
depends=('boost-libs' 'libevent')
2015-03-21 17:23:38 +08:00
cd "$pkgbase-$pkgver"
install -Dm755 src/bitcoin-cli "$pkgdir"/usr/bin/bitcoin-cli
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
2015-07-13 11:02:28 +08:00
}