bitcoin-core: update to 0.16.2

This commit is contained in:
Jeff Huang 2018-07-27 13:50:18 +02:00
parent d4cb9d2f20
commit 33c29dddeb
7 changed files with 48 additions and 120 deletions

View File

@ -1,34 +1,30 @@
pkgname=bitcoin-core
pkgver=0.16.1
pkgver=0.16.2
pkgrel=1
pkgdesc="Bitcoin is a peer-to-peer network based digital currency"
arch=('x86_64')
url="https://www.bitcoin.org/"
depends=('boost' 'boost-libs' 'zeromq' 'miniupnpc' 'libevent' 'qt5-base' 'qrencode' 'protobuf')
makedepends=('boost' 'qt5-tools')
depends=('boost' 'zeromq' 'miniupnpc' 'libevent' 'qt5-base' 'qrencode' 'protobuf')
makedepends=('qt5-tools')
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')
source=("https://github.com/bitcoin/bitcoin/archive/v$pkgver.tar.gz"
"https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/bitcoin-qt.desktop"
"bitcoin128.svg"
"https://raw.github.com/bitcoin/bitcoin/v$pkgver/contrib/debian/examples/bitcoin.conf"
"bitcoin.service"
"bitcoin-reindex.service")
sha256sums=('c0065f63509c1ca8b45057b415f8e4cbaf0f234def6090511d68fd3df3a56380'
'3d4eb0cfd0750adeadc7820e43159e5c6d622dbd8bb0177669c43c61d20958be'
'7ddc5b4f0e6a217663c4cc8bbf6dc237c8e16aff3159f0fe3e0de18810676f90'
'f5b34a5ff5f8bf4240a365dcca1f76eb1868054badf90117f2153f6254b96e10'
'5e45f2ceaeb7bfa60aeb66ca4167068191eb4358af03f95ac70fd96d9b006349'
'10ad0b8c356559886634eaf658992004045853ec26cddee143d16125cb75e8f1')
"bitcoin.sysusers"
"bitcoin.tmpfiles")
sha256sums=('0d99c4be777943954c4fea1aff0c405dbd5e30d87bcb9a939f26fa19ccb76f93'
'6f70b0d3d5e4a3f78b15d8f49515cd33cbf0c9d2ac22f94f0d3fabb3f620e458'
'b769c977b193680f2f549997fd8e07f6aa507071dfd519d59255ab4c687ebfcd')
prepare() {
cd ${pkgname%-core}-$pkgver
autoreconf -fi
}
build() {
cd ${pkgname%-core}-$pkgver
msg2 'Building...'
./autogen.sh
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
@ -45,45 +41,39 @@ build() {
package() {
cd ${pkgname%-core}-$pkgver
msg2 'Installing bitcoin...'
make DESTDIR=$pkgdir install
msg "installing .desktop and icon"
install -Dm644 "$srcdir"/bitcoin-qt.desktop \
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 \
"$pkgdir"/usr/share/applications/bitcoin.desktop
install -Dm644 "$srcdir"/bitcoin128.svg \
"$pkgdir"/usr/share/pixmaps/bitcoin128.svg
install -Dm644 share/pixmaps/bitcoin128.png \
"$pkgdir"/usr/share/pixmaps/bitcoin128.png
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"
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 -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
msg "installing license"
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
msg2 'Installing man pages...'
install -Dm 644 doc/man/*.1 -t "$pkgdir/usr/share/man/man1"
msg2 'Installing documentation...'
install -dm 755 "$pkgdir/usr/share/doc/bitcoin"
for _doc in \
$(find doc -maxdepth 1 -type f -name "*.md" -printf '%f\n') \
release-notes; do
cp -dpr --no-preserve=ownership "doc/$_doc" \
"$pkgdir/usr/share/doc/bitcoin/$_doc"
done
msg2 'Installing bitcoin.conf...'
install -Dm 600 "$srcdir/bitcoin.conf" -t "$pkgdir/etc/bitcoin"
msg2 'Installing bitcoin.service...'
install -Dm 644 "$srcdir/bitcoin.service" -t "$pkgdir/usr/lib/systemd/system"
install -Dm 644 "$srcdir/bitcoin-reindex.service" \
-t "$pkgdir/usr/lib/systemd/system"
#msg2 'Installing bitcoin.logrotate...'
#install -Dm 644 "$srcdir/bitcoin.logrotate" "$pkgdir/etc/logrotate.d/bitcoin"
msg2 'Installing bash completion...'
for _compl in bitcoin-cli bitcoin-tx bitcoind; do
install -Dm 644 "contrib/${_compl}.bash-completion" \
"$pkgdir/usr/share/bash-completion/completions/$_compl"
done
}

View File

@ -1,18 +0,0 @@
[Unit]
Description=Bitcoin Daemon (reindex)
Conflicts=bitcoin.service
After=network.target
[Service]
User=bitcoin
Group=bitcoin
ExecStart=/usr/bin/bitcoind -daemon=0 \
-conf=/etc/bitcoin/bitcoin.conf \
-datadir=/srv/bitcoin \
-reindex \
-pid=/run/bitcoind.pid
ExecReload=/usr/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/bitcoind stop
[Install]
WantedBy=multi-user.target

View File

@ -1,11 +0,0 @@
post_install() {
update-desktop-database -q
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}

View File

@ -1,17 +0,0 @@
[Unit]
Description=Bitcoin Daemon
Conflicts=bitcoin-reindex.service
After=network.target
[Service]
User=bitcoin
Group=bitcoin
ExecStart=/usr/bin/bitcoind -daemon=0 \
-conf=/etc/bitcoin/bitcoin.conf \
-datadir=/srv/bitcoin \
-pid=/run/bitcoind.pid
ExecReload=/usr/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/bitcoind stop
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1 @@
u bitcoin - - /var/lib/bitcoin

View File

@ -0,0 +1,2 @@
d /var/lib/bitcoin 0770 bitcoin bitcoin - -
d /etc/bitcoin 0770 bitcoin bitcoin - -

View File

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" version="1.1" height="48" viewBox="0 0 48 48">
<defs>
<linearGradient id="linearGradient4219">
<stop style="stop-color:#000000;stop-opacity:1;" offset="0"/>
<stop style="stop-color:#000000;stop-opacity:0;" offset="1"/>
</linearGradient>
<linearGradient id="linearGradient4153">
<stop style="stop-color:#f48b0b;stop-opacity:1" offset="0"/>
<stop style="stop-color:#ffba6b;stop-opacity:1" offset="1"/>
</linearGradient>
<linearGradient xlink:href="#linearGradient4153" id="linearGradient4159" x1="23" y1="43.866" x2="23" y2="5" gradientUnits="userSpaceOnUse" gradientTransform="translate(-1.7558594e-8,-2.481687e-5)"/>
<linearGradient xlink:href="#linearGradient4219" id="linearGradient4225" x1="15.233" y1="11.995" x2="39.609" y2="36.37" gradientUnits="userSpaceOnUse"/>
</defs>
<circle style="fill:url(#linearGradient4159);fill-opacity:1" r="20" cx="24" cy="24"/>
<path style="opacity:0.2;fill:url(#linearGradient4225);fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="M 25.984375 11.986328 L 24.748047 13.222656 L 24.839844 14.839844 L 22.005859 12.005859 L 20.896484 13.712891 L 20.197266 18.804688 L 16.6875 16.322266 L 15 18.009766 L 19.664062 22.673828 L 18.613281 30.328125 L 15.017578 31.988281 L 26.888672 43.859375 A 20 20 0 0 0 43.330078 29.332031 L 25.984375 11.986328 z"/>
<path style="fill:#ffffff;fill-opacity:1" d="m 20,12 0,4 c -0.491694,0.02 -1.394226,0 -1.865234,0 L 15,16 l 0,2 c 0,0 1.718836,-0.02999 1.691406,0 C 17.611664,17.986 17.90472,18.654087 18,19.099609 L 18,29 c -0.03527,0.281551 -0.0053,0.98 -0.648438,1 C 17.381261,30.026 15,30 15,30 l 0,2 3.253906,0 C 18.80411,31.98 19.468482,32 20,32 l 0,4 2,-0.03711 L 22,32 l 1.96875,0 0.0625,4 2,0 -0.0625,-4 C 32,32 32,29 32,27.498047 32,26 31.365771,24.001911 29,24 c 1.365771,0.0019 2,-2.256505 2,-4 0,-2.256605 -2,-4 -5,-4 l 0,-4 -2,0 0,4 c -0.597247,0 -1.393658,-0.022 -2,0 l 0,-4 z m 2,6 c 2,0 5.000347,3.8e-5 5,2.5 3.47e-4,2.500163 -3,2.5 -5,2.5 z m 0,7 c 4,1.25e-4 6.000416,3.8e-5 6,2.5 4.16e-4,2.500163 -2,2.5 -6,2.5 z"/>
<path style="fill:#000000;fill-opacity:1;opacity:0.2" d="M 43.978516 23.417969 A 20 20 0 0 1 24 43 A 20 20 0 0 1 4.0214844 23.582031 A 20 20 0 0 0 4 24 A 20 20 0 0 0 24 44 A 20 20 0 0 0 44 24 A 20 20 0 0 0 43.978516 23.417969 z"/>
</svg>

Before

Width:  |  Height:  |  Size: 2.5 KiB