2020-09-18 00:05:14 +00:00
|
|
|
# Maintainer: Christian Rebischke <Chris.Rebischke@archlinux.org>
|
|
|
|
# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
|
|
|
|
# Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
|
|
|
|
# Contributor: shahid <helllamer@gmail.com>
|
|
|
|
# Contributor: James Harvey
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - build aarch64 with crc+crypto
|
|
|
|
|
|
|
|
pkgbase=bitcoin
|
2023-06-03 18:04:50 +00:00
|
|
|
pkgname=('bitcoin-daemon' 'bitcoin-qt' 'bitcoin-tx')
|
2024-04-17 23:38:26 +00:00
|
|
|
pkgver=27.0
|
2024-06-29 23:26:16 +00:00
|
|
|
pkgrel=2
|
2020-09-18 00:05:14 +00:00
|
|
|
arch=('x86_64')
|
2022-11-24 21:17:20 +00:00
|
|
|
url="https://bitcoin.org/en/wallets/desktop/linux/bitcoincore/"
|
2023-10-19 23:47:52 +00:00
|
|
|
makedepends=(
|
|
|
|
boost
|
|
|
|
db5.3
|
|
|
|
libevent
|
|
|
|
libminiupnpc.so
|
|
|
|
libsqlite3.so
|
|
|
|
libzmq.so
|
|
|
|
qrencode
|
|
|
|
qt5-base
|
|
|
|
qt5-tools
|
|
|
|
)
|
2020-09-18 00:05:14 +00:00
|
|
|
license=('MIT')
|
2022-11-24 21:17:20 +00:00
|
|
|
source=("$pkgbase-$pkgver.tar.gz::https://bitcoincore.org/bin/bitcoin-core-$pkgver/bitcoin-$pkgver.tar.gz"
|
|
|
|
"$pkgbase-$pkgver.SHA256SUMS::https://bitcoincore.org/bin/bitcoin-core-$pkgver/SHA256SUMS"
|
|
|
|
"$pkgbase-$pkgver.SHA256SUMS.asc::https://bitcoincore.org/bin/bitcoin-core-$pkgver/SHA256SUMS.asc"
|
2020-09-18 00:05:14 +00:00
|
|
|
"bitcoin.sysusers"
|
|
|
|
"bitcoin.tmpfiles"
|
|
|
|
"bitcoin-qt.desktop"
|
2024-06-29 23:26:16 +00:00
|
|
|
"bitcoin-qt.appdata.xml"
|
|
|
|
https://github.com/bitcoin/bitcoin/commit/ac4ea782.patch)
|
2024-04-17 23:38:26 +00:00
|
|
|
sha256sums=('9c1ee651d3b157baccc3388be28b8cf3bfcefcd2493b943725ad6040ca6b146b'
|
|
|
|
'4bc7c97684a0bd1ba000f64f7a24c49302bcbd716eacb134b972188e0379a415'
|
2022-11-24 21:17:20 +00:00
|
|
|
'SKIP'
|
2020-09-18 00:05:14 +00:00
|
|
|
'7a77112fb094b9b2e6dd873e24c9a6bacb1f1c453d811a024f271f4b78f2a704'
|
|
|
|
'ba83570b4671b18c230f23d8d93cd8faa73179a546655448c14d1644d9b49f35'
|
|
|
|
'a020897651c03690eae3411fe401100fd1a2ffaa799247165eb71124609b7959'
|
2024-06-29 23:26:16 +00:00
|
|
|
'71b125555451e9bc60b54a6658d886bad63bd18c58b5d6e3bd8977b82a70da7a'
|
|
|
|
'3b2adddcee6cddd905ea5f6f07c9404bbaef02c4f436be48bd8e49c8acc76d29')
|
2024-04-17 23:38:26 +00:00
|
|
|
b2sums=('b183d4124d24f40415c716180a6da9c3c32b8bdd04829953f8a84abf969768fb9ead4dbdbb74d94d531d3157f080176a7cf63ae7ccf0665a17914f6e99f5bac4'
|
|
|
|
'edb52ec93c5f985a513990eb62e8e31edc81f7cae77794d693220da250d01bbd65ee0aad965ade6670b8d3e754dd17f3c47024fc7cb86f09adab3ca7a1d5513a'
|
2022-11-24 21:17:20 +00:00
|
|
|
'SKIP'
|
2020-09-18 00:05:14 +00:00
|
|
|
'25166f5726b43c531b7ba5f58aaf1c0242d26b96d2057da156024a8f9fc53702ea9ef0c67290cf8d302b9fb473cb16435dc2fe4489ebc5d0eae516635fd81c0e'
|
|
|
|
'45d4703b78476cb1c5748f62863914e5397858c835e43cee2f4895608dbabf383993b840bb3ec2d4d2c64ca02152881ad4b495b28f94451f706687b83e99d2af'
|
|
|
|
'f14315183b5ac6b6a9f3e4ff269be37eeb6a4529bb4c9d0cd3e1d54e3ec8052f87ba1e6591080a0d1c78daf7af40cb2ecbd11d9702e217b9c1e50d5011a8e048'
|
2024-06-29 23:26:16 +00:00
|
|
|
'236a841446b905f4cf154184109451300b984694ace96bee3ec75872563313279f9c543daaceed2dd712bf56115deee538b862aa73f15dee5447d235299389c7'
|
|
|
|
'7803fff12766c6d2a627d8c3441053fae3721ca63cbbf87dc03ecc1df89fa8a950d71024f970588239b2fc560bddac7c5cde8403453f4b924b9ba0c86e1cf9d5')
|
2022-11-24 21:17:20 +00:00
|
|
|
validpgpkeys=(71A3B16735405025D447E8F274810B012346C9A6
|
2022-12-16 19:35:03 +00:00
|
|
|
28E72909F1717FE9607754F8A7BEB2621678D37D
|
2023-10-19 23:47:52 +00:00
|
|
|
79D00BAC68B56D422F945A8F8E3A8F3247DBCBBF
|
2023-12-08 00:24:50 +00:00
|
|
|
C388F6961FB972A95678E327F62711DBDCA8AE56
|
2024-04-17 23:38:26 +00:00
|
|
|
152812300785C96444D3334D17565732E08E5E41
|
|
|
|
F4FC70F07310028424EFC20A8E4256593F177720)
|
2020-09-18 00:05:14 +00:00
|
|
|
changelog=Changelog
|
|
|
|
|
|
|
|
prepare() {
|
2022-11-24 21:17:20 +00:00
|
|
|
sha256sum -c --ignore-missing "$pkgbase-$pkgver.SHA256SUMS"
|
2020-09-18 00:05:14 +00:00
|
|
|
cd "$pkgbase-$pkgver"
|
|
|
|
autoreconf -fi
|
2024-06-29 23:26:16 +00:00
|
|
|
patch -p1 -i ../ac4ea782.patch # Fix build with miniupnpc 2.2.8
|
2020-09-18 00:05:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgbase-$pkgver
|
|
|
|
[[ $CARCH == "aarch64" ]] && CFLAGS=`echo $CFLAGS | sed -e 's/-march=armv8-a/-march=armv8-a+crc+crypto/'` && CXXFLAGS="$CFLAGS"
|
2023-09-01 17:53:26 +00:00
|
|
|
#remove _FORTIFY_SOURCE from CXXFLAGS to prevent a duplicate definition warning as configure adds _FORTIFY_SOURCE itself
|
|
|
|
CXXFLAGS=${CXXFLAGS/-Wp,-D_FORTIFY_SOURCE=?/}
|
2022-12-19 02:53:00 +00:00
|
|
|
./configure --prefix=/usr --with-gui=qt5 --with-incompatible-bdb BDB_LIBS="-ldb_cxx-5.3" BDB_CFLAGS="-I/usr/include/db5.3"
|
2020-09-18 00:05:14 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package_bitcoin-qt() {
|
|
|
|
pkgdesc="Bitcoin is a peer-to-peer network based digital currency - Qt"
|
2023-10-19 23:47:52 +00:00
|
|
|
depends=(
|
|
|
|
db5.3
|
2024-04-17 23:38:26 +00:00
|
|
|
gcc-libs
|
|
|
|
glibc
|
2023-10-19 23:47:52 +00:00
|
|
|
hicolor-icon-theme
|
|
|
|
libevent
|
|
|
|
libminiupnpc.so
|
|
|
|
libsqlite3.so
|
|
|
|
libzmq.so
|
|
|
|
qrencode
|
|
|
|
qt5-base
|
|
|
|
)
|
2020-09-18 00:05:14 +00:00
|
|
|
|
|
|
|
cd $pkgbase-$pkgver
|
|
|
|
install -Dm755 src/qt/bitcoin-qt "$pkgdir"/usr/bin/bitcoin-qt
|
2023-06-03 18:04:50 +00:00
|
|
|
install -Dm644 contrib/completions/fish/bitcoin-qt.fish \
|
|
|
|
-t "$pkgdir/usr/share/fish/vendor_completions.d/"
|
2020-09-18 00:05:14 +00:00
|
|
|
install -Dm644 doc/man/bitcoin-qt.1 \
|
|
|
|
"$pkgdir"/usr/share/man/man1/bitcoin-qt.1
|
|
|
|
install -Dm644 ../bitcoin-qt.desktop \
|
|
|
|
"$pkgdir"/usr/share/applications/bitcoin-qt.desktop
|
|
|
|
install -Dm644 ../bitcoin-qt.appdata.xml \
|
|
|
|
"$pkgdir"/usr/share/metainfo/bitcoin-qt.appdata.xml
|
|
|
|
install -Dm644 src/qt/res/src/bitcoin.svg \
|
|
|
|
"$pkgdir"/usr/share/icons/hicolor/scalable/apps/bitcoin-qt.svg
|
|
|
|
|
|
|
|
for i in 16 32 64 128 256; do
|
|
|
|
install -Dm644 share/pixmaps/bitcoin${i}.png \
|
|
|
|
"$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/bitcoin-qt.png
|
|
|
|
done
|
|
|
|
|
|
|
|
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_bitcoin-daemon() {
|
|
|
|
pkgdesc="Bitcoin is a peer-to-peer network based digital currency - daemon"
|
2023-10-19 23:47:52 +00:00
|
|
|
depends=(
|
|
|
|
db5.3
|
2024-04-17 23:38:26 +00:00
|
|
|
gcc-libs
|
|
|
|
glibc
|
2023-10-19 23:47:52 +00:00
|
|
|
libevent
|
|
|
|
libminiupnpc.so
|
|
|
|
libsqlite3.so
|
|
|
|
libzmq.so
|
|
|
|
)
|
2020-09-18 00:05:14 +00:00
|
|
|
backup=('etc/bitcoin/bitcoin.conf')
|
2023-06-03 18:04:50 +00:00
|
|
|
provides=('bitcoin-cli')
|
|
|
|
replaces=('bitcoin-cli')
|
2020-09-18 00:05:14 +00:00
|
|
|
|
|
|
|
cd $pkgbase-$pkgver
|
2023-06-03 18:04:50 +00:00
|
|
|
install -Dm755 -t "$pkgdir/usr/bin" \
|
|
|
|
src/bitcoind \
|
|
|
|
src/bitcoin-cli
|
|
|
|
|
2023-12-08 00:24:50 +00:00
|
|
|
install -Dm644 contrib/completions/bash/bitcoind.bash \
|
2023-06-03 18:04:50 +00:00
|
|
|
"$pkgdir/usr/share/bash-completion/completions/bitcoind"
|
2023-12-08 00:24:50 +00:00
|
|
|
install -Dm644 contrib/completions/bash/bitcoin-cli.bash \
|
2023-06-03 18:04:50 +00:00
|
|
|
"$pkgdir/usr/share/bash-completion/completions/bitcoin-cli"
|
|
|
|
|
|
|
|
install -Dm644 -t "$pkgdir/usr/share/fish/vendor_completions.d/" \
|
|
|
|
contrib/completions/fish/bitcoind.fish \
|
|
|
|
contrib/completions/fish/bitcoin-cli.fish
|
|
|
|
|
|
|
|
install -Dm644 -t "$pkgdir"/usr/share/man/man1/ \
|
|
|
|
doc/man/bitcoind.1 \
|
|
|
|
doc/man/bitcoin-cli.1
|
|
|
|
|
2020-09-18 00:05:14 +00:00
|
|
|
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"
|
|
|
|
install -Dm644 share/examples/bitcoin.conf \
|
|
|
|
"$pkgdir/etc/bitcoin/bitcoin.conf"
|
|
|
|
|
|
|
|
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_bitcoin-tx() {
|
2023-06-03 18:04:50 +00:00
|
|
|
pkgdesc="Bitcoin is a peer-to-peer network based digital currency - commandline tools"
|
2023-10-19 23:47:52 +00:00
|
|
|
depends=(
|
|
|
|
db5.3
|
2024-04-17 23:38:26 +00:00
|
|
|
gcc-libs
|
|
|
|
glibc
|
2023-10-19 23:47:52 +00:00
|
|
|
libsqlite3.so
|
|
|
|
)
|
2020-09-18 00:05:14 +00:00
|
|
|
|
|
|
|
cd $pkgbase-$pkgver
|
2023-06-03 18:04:50 +00:00
|
|
|
for tool in bitcoin-tx bitcoin-util bitcoin-wallet; do
|
|
|
|
install -Dm755 "src/$tool" -t "$pkgdir/usr/bin"
|
2023-12-08 00:24:50 +00:00
|
|
|
if [ -f "contrib/completions/bash/$tool.bash" ]; then
|
|
|
|
install -Dm644 "contrib/completions/bash/$tool.bash" \
|
2023-06-03 18:04:50 +00:00
|
|
|
"$pkgdir/usr/share/bash-completion/completions/$tool"
|
|
|
|
fi
|
|
|
|
install -Dm644 contrib/completions/fish/$tool.fish \
|
|
|
|
-t "$pkgdir/usr/share/fish/vendor_completions.d/"
|
|
|
|
install -Dm644 "doc/man/$tool.1" \
|
|
|
|
"$pkgdir/usr/share/man/man1/$tool.1"
|
|
|
|
done
|
2020-09-18 00:05:14 +00:00
|
|
|
|
|
|
|
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|