mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
added community/bitcoin
This commit is contained in:
parent
54767e3abd
commit
06df600133
6 changed files with 164 additions and 0 deletions
1
community/bitcoin/Changelog
Normal file
1
community/bitcoin/Changelog
Normal file
|
@ -0,0 +1 @@
|
|||
https://bitcoincore.org/en/releases/0.19.0.1/
|
123
community/bitcoin/PKGBUILD
Normal file
123
community/bitcoin/PKGBUILD
Normal file
|
@ -0,0 +1,123 @@
|
|||
# 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
|
||||
|
||||
#_dbver=4.8.30
|
||||
pkgbase=bitcoin
|
||||
pkgname=('bitcoin-daemon' 'bitcoin-cli' 'bitcoin-qt' 'bitcoin-tx')
|
||||
pkgver=0.20.1
|
||||
pkgrel=2
|
||||
arch=('x86_64')
|
||||
url="https://www.bitcoin.org/"
|
||||
makedepends=('boost' 'libevent' 'qt5-base' 'qt5-tools' 'qrencode' 'miniupnpc' 'protobuf' 'zeromq')
|
||||
license=('MIT')
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/bitcoin/bitcoin/archive/v$pkgver.tar.gz"
|
||||
"bitcoin.sysusers"
|
||||
"bitcoin.tmpfiles"
|
||||
"bitcoin-qt.desktop"
|
||||
"bitcoin-qt.appdata.xml")
|
||||
sha256sums=('4bbd62fd6acfa5e9864ebf37a24a04bc2dcfe3e3222f056056288d854c53b978'
|
||||
'7a77112fb094b9b2e6dd873e24c9a6bacb1f1c453d811a024f271f4b78f2a704'
|
||||
'ba83570b4671b18c230f23d8d93cd8faa73179a546655448c14d1644d9b49f35'
|
||||
'a020897651c03690eae3411fe401100fd1a2ffaa799247165eb71124609b7959'
|
||||
'71b125555451e9bc60b54a6658d886bad63bd18c58b5d6e3bd8977b82a70da7a')
|
||||
b2sums=('75493de74cbb9290cf40543c88d3d3ef34a2a0a0b484304d6e3d0db4018032942698398f03b1a31c1a16d07ed61754e248d376f9f5933929249d94681fb55cd2'
|
||||
'25166f5726b43c531b7ba5f58aaf1c0242d26b96d2057da156024a8f9fc53702ea9ef0c67290cf8d302b9fb473cb16435dc2fe4489ebc5d0eae516635fd81c0e'
|
||||
'45d4703b78476cb1c5748f62863914e5397858c835e43cee2f4895608dbabf383993b840bb3ec2d4d2c64ca02152881ad4b495b28f94451f706687b83e99d2af'
|
||||
'f14315183b5ac6b6a9f3e4ff269be37eeb6a4529bb4c9d0cd3e1d54e3ec8052f87ba1e6591080a0d1c78daf7af40cb2ecbd11d9702e217b9c1e50d5011a8e048'
|
||||
'236a841446b905f4cf154184109451300b984694ace96bee3ec75872563313279f9c543daaceed2dd712bf56115deee538b862aa73f15dee5447d235299389c7')
|
||||
validpgpkeys=(71A3B16735405025D447E8F274810B012346C9A6)
|
||||
changelog=Changelog
|
||||
|
||||
prepare() {
|
||||
cd "$pkgbase-$pkgver"
|
||||
autoreconf -fi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgbase-$pkgver
|
||||
[[ $CARCH == "aarch64" ]] && CFLAGS=`echo $CFLAGS | sed -e 's/-march=armv8-a/-march=armv8-a+crc+crypto/'` && CXXFLAGS="$CFLAGS"
|
||||
./configure --prefix=/usr --with-gui=qt5 --with-incompatible-bdb #LDFLAGS="-L$srcdir/db4/lib/ $LDFLAGS" CPPFLAGS="-I$srcdir/db4/include/ $CPPFLAGS"
|
||||
make
|
||||
}
|
||||
|
||||
package_bitcoin-qt() {
|
||||
pkgdesc="Bitcoin is a peer-to-peer network based digital currency - Qt"
|
||||
depends=(boost-libs libevent qt5-base miniupnpc libminiupnpc.so qrencode protobuf zeromq hicolor-icon-theme)
|
||||
|
||||
cd $pkgbase-$pkgver
|
||||
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 ../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"
|
||||
depends=(boost-libs libevent miniupnpc libminiupnpc.so zeromq)
|
||||
backup=('etc/bitcoin/bitcoin.conf')
|
||||
|
||||
cd $pkgbase-$pkgver
|
||||
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/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-cli() {
|
||||
pkgdesc="Bitcoin is a peer-to-peer network based digital currency - RPC client"
|
||||
depends=(boost-libs libevent)
|
||||
|
||||
cd $pkgbase-$pkgver
|
||||
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
|
||||
|
||||
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||
}
|
||||
|
||||
package_bitcoin-tx() {
|
||||
pkgdesc="Bitcoin is a peer-to-peer network based digital currency - Transaction tool"
|
||||
depends=(boost-libs openssl)
|
||||
|
||||
cd $pkgbase-$pkgver
|
||||
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
|
||||
|
||||
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
24
community/bitcoin/bitcoin-qt.appdata.xml
Normal file
24
community/bitcoin/bitcoin-qt.appdata.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>org.bitcoincore.bitcoin-qt</id>
|
||||
<name>Bitcoin Core</name>
|
||||
<project_license>MIT</project_license>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<summary>Connect to the Bitcoin P2P network</summary>
|
||||
<url type="homepage">https://bitcoincore.org/</url>
|
||||
<url type="bugtracker">https://github.com/bitcoin/bitcoin/issues</url>
|
||||
<launchable type="desktop-id">bitcoin-qt.desktop</launchable>
|
||||
<description>
|
||||
<p>Bitcoin is an experimental digital currency that enables instant
|
||||
payments to anyone, anywhere in the world. Bitcoin uses
|
||||
peer-to-peer technology to operate with no central authority:
|
||||
managing transactions and issuing money are carried out
|
||||
collectively by the network. Bitcoin Core is the name of open
|
||||
source software which enables the use of this currency.</p>
|
||||
</description>
|
||||
<screenshots>
|
||||
<screenshot>
|
||||
<image type="source">https://user-images.githubusercontent.com/6399679/62743657-2fc28b80-ba11-11e9-9bbf-d3ad0d17abb0.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
</component>
|
13
community/bitcoin/bitcoin-qt.desktop
Normal file
13
community/bitcoin/bitcoin-qt.desktop
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Desktop Entry]
|
||||
Name=Bitcoin Core
|
||||
Comment=Connect to the Bitcoin P2P Network
|
||||
Comment[de]=Verbinde mit dem Bitcoin peer-to-peer Netzwerk
|
||||
Comment[fr]=Bitcoin, monnaie virtuelle cryptographique pair à pair
|
||||
Comment[tr]=Bitcoin, eşten eşe kriptografik sanal para birimi
|
||||
Exec=bitcoin-qt %u
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=bitcoin-qt
|
||||
MimeType=x-scheme-handler/bitcoin;
|
||||
Categories=Office;Finance;P2P;Network;Qt;
|
||||
StartupWMClass=Bitcoin-qt
|
1
community/bitcoin/bitcoin.sysusers
Normal file
1
community/bitcoin/bitcoin.sysusers
Normal file
|
@ -0,0 +1 @@
|
|||
u bitcoin - - /var/lib/bitcoind
|
2
community/bitcoin/bitcoin.tmpfiles
Normal file
2
community/bitcoin/bitcoin.tmpfiles
Normal file
|
@ -0,0 +1,2 @@
|
|||
d /var/lib/bitcoind 0770 bitcoin bitcoin - -
|
||||
d /etc/bitcoin 0770 bitcoin bitcoin - -
|
Loading…
Reference in a new issue