desktop/bitcoin-core/PKGBUILD

80 lines
2.8 KiB
Bash
Raw Normal View History

2017-03-12 02:16:45 +08:00
pkgname=bitcoin-core
2018-07-27 19:50:18 +08:00
pkgver=0.16.2
2018-01-21 02:51:25 +08:00
pkgrel=1
2017-03-12 02:16:45 +08:00
pkgdesc="Bitcoin is a peer-to-peer network based digital currency"
arch=('x86_64')
2017-06-28 11:52:12 +08:00
url="https://www.bitcoin.org/"
2018-07-27 19:50:18 +08:00
depends=('boost' 'zeromq' 'miniupnpc' 'libevent' 'qt5-base' 'qrencode' 'protobuf')
makedepends=('qt5-tools')
2017-03-12 02:16:45 +08:00
license=('MIT')
conflicts=('bitcoin-daemon' 'bitcoin-cli' 'bitcoin-qt' 'bitcoin')
replaces=('bitcoin-daemon' 'bitcoin-cli' 'bitcoin-qt' 'bitcoin')
provides=('bitcoin-daemon' 'bitcoin-cli' 'bitcoin-qt' 'bitcoin')
2018-02-25 18:29:02 +08:00
source=("https://github.com/bitcoin/bitcoin/archive/v$pkgver.tar.gz"
2018-07-27 19:50:18 +08:00
"bitcoin.sysusers"
"bitcoin.tmpfiles")
sha256sums=('0d99c4be777943954c4fea1aff0c405dbd5e30d87bcb9a939f26fa19ccb76f93'
'6f70b0d3d5e4a3f78b15d8f49515cd33cbf0c9d2ac22f94f0d3fabb3f620e458'
'b769c977b193680f2f549997fd8e07f6aa507071dfd519d59255ab4c687ebfcd')
2017-03-12 02:16:45 +08:00
2018-07-27 19:50:18 +08:00
prepare() {
cd ${pkgname%-core}-$pkgver
autoreconf -fi
}
2017-03-12 02:16:45 +08:00
build() {
2018-01-21 02:51:25 +08:00
cd ${pkgname%-core}-$pkgver
2017-03-12 02:16:45 +08:00
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--libexecdir=/usr/lib/bitcoin \
--sysconfdir=/etc \
--sharedstatedir=/usr/share/bitcoin \
--localstatedir=/var/lib/bitcoin \
--with-incompatible-bdb \
--enable-hardening \
--with-gui=qt5
make
}
package() {
2018-01-21 02:51:25 +08:00
cd ${pkgname%-core}-$pkgver
2017-03-12 02:16:45 +08:00
2018-07-27 19:50:18 +08:00
install -Dm755 src/qt/bitcoin-qt "$pkgdir"/usr/bin/bitcoin-qt
install -Dm644 doc/man/bitcoin-qt.1 \
"$pkgdir"/usr/share/man/man1/bitcoin-qt.1
install -Dm644 contrib/debian/bitcoin-qt.desktop \
2017-03-12 02:16:45 +08:00
"$pkgdir"/usr/share/applications/bitcoin.desktop
2018-07-27 19:50:18 +08:00
install -Dm644 share/pixmaps/bitcoin128.png \
"$pkgdir"/usr/share/pixmaps/bitcoin128.png
2017-03-12 02:16:45 +08:00
2018-07-27 19:50:18 +08:00
install -Dm755 src/bitcoind "$pkgdir"/usr/bin/bitcoind
install -Dm644 contrib/bitcoind.bash-completion \
"$pkgdir"/usr/share/bash-completion/completions/bitcoind
install -Dm644 doc/man/bitcoind.1 \
"$pkgdir"/usr/share/man/man1/bitcoind.1
install -Dm644 contrib/debian/examples/bitcoin.conf \
"$pkgdir/usr/share/doc/$pkgname/examples/bitcoin.conf"
install -Dm644 contrib/init/bitcoind.service \
"$pkgdir/usr/lib/systemd/system/bitcoind.service"
install -Dm644 "$srcdir/bitcoin.sysusers" \
"$pkgdir/usr/lib/sysusers.d/bitcoin.conf"
install -Dm644 "$srcdir/bitcoin.tmpfiles" \
"$pkgdir/usr/lib/tmpfiles.d/bitcoin.conf"
2017-03-12 02:16:45 +08:00
2018-07-27 19:50:18 +08:00
install -Dm755 src/bitcoin-cli "$pkgdir"/usr/bin/bitcoin-cli
install -Dm644 contrib/bitcoin-cli.bash-completion \
"$pkgdir"/usr/share/bash-completion/completions/bitcoin-cli
install -Dm644 doc/man/bitcoin-cli.1 \
"$pkgdir"/usr/share/man/man1/bitcoin-cli.1
2017-03-12 02:16:45 +08:00
2018-07-27 19:50:18 +08:00
install -Dm755 src/bitcoin-tx "$pkgdir"/usr/bin/bitcoin-tx
install -Dm644 contrib/bitcoin-tx.bash-completion \
"$pkgdir"/usr/share/bash-completion/completions/bitcoin-tx
install -Dm644 doc/man/bitcoin-tx.1 \
"$pkgdir"/usr/share/man/man1/bitcoin-tx.1
2017-03-12 02:16:45 +08:00
2018-07-27 19:50:18 +08:00
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
2017-03-12 02:16:45 +08:00
}