64 lines
2.2 KiB
Bash
64 lines
2.2 KiB
Bash
# Template file for 'bitcoin'
|
|
pkgname=bitcoin
|
|
version=0.18.0
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--with-incompatible-bdb --disable-ccache --disable-static
|
|
--enable-hardening --with-boost=${XBPS_CROSS_BASE}/usr"
|
|
hostmakedepends="pkg-config yasm protobuf"
|
|
makedepends="db-devel protobuf-devel libprotoc-devel boost-devel
|
|
miniupnpc-devel libevent-devel qrencode-devel libatomic-devel"
|
|
short_desc="Bitcoin is a peer-to-peer network based digital currency"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://bitcoin.org/"
|
|
distfiles="https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz
|
|
https://raw.github.com/bitcoin-core/packaging/master/debian/bitcoin-qt.desktop
|
|
https://raw.github.com/bitcoin/bitcoin/v${version}/share/pixmaps/bitcoin128.png"
|
|
checksum="5e4e6890e07b620a93fdb24605dae2bb53e8435b2a93d37558e1db1913df405f
|
|
0a46bbadda140599e807be38999e6848c89f9c3523d26fede02d34d62d50f632
|
|
ad880c8459ecfdb96abe6a4689af06bdd27906e0edcd39d0915482f2da91e722"
|
|
conflicts="litecoin>=0" # Both provide libbitcoinconsensus.so.0
|
|
skip_extraction="bitcoin-qt.desktop bitcoin128.png"
|
|
subpackages="bitcoin-devel"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
# XXX -qt subpkg
|
|
makedepends+=" qt5-devel qt5-tools-devel"
|
|
configure_args+=" --with-gui"
|
|
subpackages+=" bitcoin-qt"
|
|
fi
|
|
|
|
post_install() {
|
|
rm "${DESTDIR}"/usr/bin/{test,bench}_bitcoin
|
|
|
|
for b in bitcoind bitcoin-cli bitcoin-tx; do
|
|
vinstall contrib/${b}.bash-completion 644 usr/share/bash-completion $b
|
|
done
|
|
|
|
vlicense COPYING
|
|
}
|
|
|
|
bitcoin-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vdoc doc/shared-libraries.md # Provides information on libbitcoinconsensus
|
|
}
|
|
}
|
|
|
|
bitcoin-qt_package() {
|
|
depends="desktop-file-utils"
|
|
short_desc+=" - QT GUI"
|
|
pkg_install() {
|
|
vmove usr/bin/bitcoin-qt
|
|
vmove usr/share/man/man1/bitcoin-qt.1
|
|
vinstall ${XBPS_SRCDISTDIR}/${sourcepkg}-${version}/bitcoin-qt.desktop 644 usr/share/applications
|
|
vinstall ${XBPS_SRCDISTDIR}/${sourcepkg}-${version}/bitcoin128.png 644 usr/share/pixmaps
|
|
vlicense COPYING
|
|
rm "${DESTDIR}"/usr/bin/test_bitcoin-qt
|
|
}
|
|
}
|