aboutsummaryrefslogtreecommitdiffstats
path: root/community/namecoin
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.dk>2017-12-06 04:56:22 +0100
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-12-14 13:32:34 +0000
commitfe430fb89fddee3d8dca5ce31bbd320a16edba8d (patch)
tree6a56a5158d112e05a0c6d11c5a92d80916ee0e51 /community/namecoin
parent00ad1c038b7ce837d08711ec6bf9cdce8ee34418 (diff)
downloadaports-fe430fb89fddee3d8dca5ce31bbd320a16edba8d.tar.bz2
aports-fe430fb89fddee3d8dca5ce31bbd320a16edba8d.tar.xz
community/namecoin: rebuild against protobuf 3.5.0; modernize
Diffstat (limited to 'community/namecoin')
-rw-r--r--community/namecoin/APKBUILD34
1 files changed, 19 insertions, 15 deletions
diff --git a/community/namecoin/APKBUILD b/community/namecoin/APKBUILD
index 243770286f..8b957f3336 100644
--- a/community/namecoin/APKBUILD
+++ b/community/namecoin/APKBUILD
@@ -33,55 +33,59 @@ build() {
--with-utils \
--disable-ccache \
--disable-static \
- --enable-hardening \
- || return 1
- make || return 1
+ --enable-hardening
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make install DESTDIR="$pkgdir" || return 1
- install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1
- install -m600 -D "$srcdir"/$pkgname.conf "$pkgdir"/etc/$pkgname.conf || return 1
+ make install DESTDIR="$pkgdir"
+ install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -m600 -D "$srcdir"/$pkgname.conf "$pkgdir"/etc/$pkgname.conf
rm -f "$pkgdir"/usr/lib/*.la
}
qt() {
pkgdesc="Namecoin with a Qt frontend & QR Code support"
mkdir -p "$subpkgdir"/usr/bin
- mv "$pkgdir"/usr/bin/$pkgname-qt "$subpkgdir"/usr/bin/ || return 1
+ mv "$pkgdir"/usr/bin/$pkgname-qt "$subpkgdir"/usr/bin/
}
cli() {
pkgdesc="Namecoin CLI"
mkdir -p "$subpkgdir"/usr/bin
- mv "$pkgdir"/usr/bin/$pkgname-cli "$subpkgdir"/usr/bin/ || return 1
+ mv "$pkgdir"/usr/bin/$pkgname-cli "$subpkgdir"/usr/bin/
}
tx() {
pkgdesc="Namecoin TX (Transaction Tool)"
mkdir -p "$subpkgdir"/usr/bin
- mv "$pkgdir"/usr/bin/$pkgname-tx "$subpkgdir"/usr/bin/ || return 1
+ mv "$pkgdir"/usr/bin/$pkgname-tx "$subpkgdir"/usr/bin/
}
tests() {
pkgdesc="Namecoin & Namecoin-QT Unit Tests)"
mkdir -p "$subpkgdir"/usr/bin
- chrpath -d "$pkgdir"/usr/bin/test_namecoin || return 1
- mv "$pkgdir"/usr/bin/test_$pkgname-qt "$subpkgdir"/usr/bin/ || return 1
- mv "$pkgdir"/usr/bin/test_$pkgname "$subpkgdir"/usr/bin/ || return 1
+ chrpath -d "$pkgdir"/usr/bin/test_namecoin
+ mv "$pkgdir"/usr/bin/test_$pkgname-qt "$subpkgdir"/usr/bin/
+ mv "$pkgdir"/usr/bin/test_$pkgname "$subpkgdir"/usr/bin/
}
bench() {
pkgdesc="Namecoin Benchmarking Tools"
mkdir -p "$subpkgdir"/usr/bin
- mv "$pkgdir"/usr/bin/bench_$pkgname "$subpkgdir"/usr/bin/ || return 1
+ mv "$pkgdir"/usr/bin/bench_$pkgname "$subpkgdir"/usr/bin/
}
dev() {
mkdir -p "$subpkgdir"/usr
- mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ || return 1
- mv "$pkgdir"/usr/include "$subpkgdir"/usr/ || return 1
+ mv "$pkgdir"/usr/lib "$subpkgdir"/usr/
+ mv "$pkgdir"/usr/include "$subpkgdir"/usr/
}
sha512sums="48f07e68872de69c522eaa76a5f519ba0a161bdaf3ce9979bd5af2a42dd67cd3bad7d6b695f55322c0cfdbad482ee5d279331f4e7c062fef8f09dc9001c1d368 namecoin-0.13.0rc1.tar.gz