aboutsummaryrefslogtreecommitdiffstats
path: root/community/namecoin/APKBUILD
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2016-09-04 23:35:18 +0000
committerJakub Jirutka <jakub@jirutka.cz>2016-09-08 21:57:25 +0200
commitee9edf5ad90396e4015f21fc897bcf32f3582d76 (patch)
tree5c9bc221e6d95e02cfa41c42da2e51bb46273164 /community/namecoin/APKBUILD
parent9be33aa809af1a7bb2abfa32a27aec44c041dcdf (diff)
downloadaports-ee9edf5ad90396e4015f21fc897bcf32f3582d76.tar.bz2
aports-ee9edf5ad90396e4015f21fc897bcf32f3582d76.tar.xz
community/namecoin: update to 0.13.0-rc1
https://github.com/namecoin/namecoin-core/blob/master/Changes
Diffstat (limited to 'community/namecoin/APKBUILD')
-rw-r--r--community/namecoin/APKBUILD125
1 files changed, 74 insertions, 51 deletions
diff --git a/community/namecoin/APKBUILD b/community/namecoin/APKBUILD
index a2d5eff343..26504d3f20 100644
--- a/community/namecoin/APKBUILD
+++ b/community/namecoin/APKBUILD
@@ -1,75 +1,98 @@
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=namecoin
-pkgver=0.3.80
-pkgrel=1
+pkgver=0.13.0_rc1
+_ver=${pkgver/_/}
+pkgrel=0
pkgdesc="Namecoin is a peer to peer DNS based on bitcoin"
-url="https://github.com/namecoin/namecoin"
-arch=""
-license="GPL"
-depends=""
-depends_dev="openssl-dev db-dev boost-dev miniupnpc-dev glib-dev qt5-qtbase-dev qt5-qttools-dev"
-makedepends="$depends_dev bsd-compat-headers"
+url="http://www.namecoin.org/"
+arch="all"
+license="MIT"
+makedepends="$depends_dev autoconf automake libtool boost-dev openssl-dev
+ db-dev miniupnpc-dev qt5-qtbase-dev qt5-qttools-dev protobuf-dev
+ libqrencode-dev libevent-dev chrpath"
install="$pkgname.post-install $pkgname.pre-install"
-subpackages="$pkgname-qt"
-source="$pkgname-$pkgver.tar.gz::https://github.com/namecoin/namecoin/archive/nc$pkgver.tar.gz
- 20-boost-multithread-dynamic.patch
- system-strlcpy.patch
+subpackages="$pkgname-dev $pkgname-qt $pkgname-cli $pkgname-tx $pkgname-tests $pkgname-bench"
+source="$pkgname-$_ver.tar.gz::https://github.com/$pkgname/$pkgname-core/archive/nc${_ver}.tar.gz
+ ssize_t.patch
$pkgname.initd
$pkgname.conf
"
-
-_builddir="$srcdir"/namecoin-nc$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir/$pkgname-core-nc$_ver"
build() {
- cd "$_builddir"/src
- # build namecoind
- make USE_UPNP=1 USE_SSL=1 || return 1
- cd ..
- # build namecoin-qt
- qmake
- # Fix boost_multi thread linking in the GUI too
- sed -i 's/-lboost_thread/-lboost_thread-mt/g' ./Makefile
- sed -i 's/-lboost_program_options/-lboost_program_options-mt/g' ./Makefile
- sed -i 's/-lboost_chrono/-lboost_chrono-mt/g' ./Makefile
+ cd "$builddir"
+ ./autogen.sh
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --with-incompatible-bdb \
+ --with-gui=qt5 \
+ --with-utils \
+ --disable-ccache \
+ --disable-static \
+ --enable-hardening \
+ || return 1
make || return 1
}
package() {
- cd "$_builddir"/src
- install -Dm755 namecoind "$pkgdir"/usr/bin/namecoind || return 1
+ 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
+ rm -f "$pkgdir"/usr/lib/*.la
}
qt() {
- pkgdesc="Namecoin with a Qt frontend"
- cd "$_builddir"
- mkdir -p "$subpkgdir"/usr/bin
- install -Dm755 namecoin-qt "$subpkgdir"/usr/bin/namecoin-qt || return 1
+ 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
+}
+
+cli() {
+ pkgdesc="Namecoin CLI"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/$pkgname-cli "$subpkgdir"/usr/bin/ || return 1
+}
+
+tx() {
+ pkgdesc="Namecoin TX (Transaction Tool)"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/$pkgname-tx "$subpkgdir"/usr/bin/ || return 1
+}
+
+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
+}
+
+bench() {
+ pkgdesc="Namecoin Benchmarking Tools"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/bench_$pkgname "$subpkgdir"/usr/bin/ || return 1
+}
+
+dev() {
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ || return 1
+ mv "$pkgdir"/usr/include "$subpkgdir"/usr/ || return 1
}
-md5sums="7302f83d8390184139277255a6c1d484 namecoin-0.3.80.tar.gz
-e4e43d7420191a94500189fe58a34a9c 20-boost-multithread-dynamic.patch
-3350b82aec4eb1edb2555c0b0e8b0451 system-strlcpy.patch
-9ecdbd9e17240075d064498a80fd50bd namecoin.initd
+md5sums="f18f88080d92cf3aa35b21496e4f9139 namecoin-0.13.0rc1.tar.gz
+716a88e668729e89d3eb929da86f7f04 ssize_t.patch
+826110b59ab23776065a7666599409a3 namecoin.initd
59b2e0e765738ba48f632051fb6917ae namecoin.conf"
-sha256sums="3f5e5af95cea46111d3cf1663f0e84d5fda653917745e0607a3ca4773baea59c namecoin-0.3.80.tar.gz
-1b0e2c1c3ca849df816405c9f8dd86e056daed213c3e4c4e72161cabd64e67e8 20-boost-multithread-dynamic.patch
-44ff4beb1a10bd1e6a0f984a37d69e025b2c2b5de58af300ec5c23fd3e83f67e system-strlcpy.patch
-04ae66115343aa8ed7343139a2370b1e570c8ab4397d09457f5f157dd906a204 namecoin.initd
+sha256sums="1f52c1809680effe32d4b94c33136cc051364248578033fbcdca06ed630784ad namecoin-0.13.0rc1.tar.gz
+f0a094c7b374338ad153ee06b7dd2369dad6b97b1f1bb0252da12c9aaace5321 ssize_t.patch
+18a64147ae9212211b036b3d873ad43a88897fba5e3e3328c52ad66407c89fee namecoin.initd
4b413833527929ea863351469a5a4fc1e0ac365fe9df5e8a8304d8667acf8cea namecoin.conf"
-sha512sums="6ff3fddd72cf8ed4224b42deb6a7ca50906262cb50c3ca5ccb419791daa474d52b9584cbc47240fa7546c3f23fe23b72af475f16d1dd110ab13098e3e60a5de6 namecoin-0.3.80.tar.gz
-fc13574fef73cca20178e5895e2327567f40c91d25105d72b301a155f9025bfb494ce337096424fd71da8034fb0544562b8459c1d8ae2598ee503efd5995c6bf 20-boost-multithread-dynamic.patch
-8701c8faf786420a7085a8e5d85080fe18f26e53ae346c1c897315fd7f8f00e1f1e326ed5917b0eefa8f74bc7470e8979c1b10515017584baa2e9feb3c39b205 system-strlcpy.patch
-3048248b3da7300b0b3cb5667283badc17b41e6c90573604fd9ea9eb9933e93f9b1d6288846793b4e7a001a4cae5e52d2ce42e4bdc83e48f72aca6ee0e8ddd43 namecoin.initd
+sha512sums="c495e1ef4fa45219c1bec49c0f0d81661a55b2eabb8fce291c1316086589438cd9ae129dc4ce63cb845646cf28f2b4fd46c0d87ed315167c82dbdf447a4eb38b namecoin-0.13.0rc1.tar.gz
+98aa5ad81bdb4ae961b791bc978c39117cdf2d83c2181f92bebbb0db107d9b6e86eda265fb3f93ff8a5ca8a7754d7148818b98095d57201dff9363d60b97e7dd ssize_t.patch
+1753132f349e02cc248a622eb17f2f98a180d561d46f2e8916b84cc26c98d546214ca305bb1ea378ae14090c0abf8d6ac257c98c6776bbe4dabd68c108f595a3 namecoin.initd
3f92cb9a5f66d0e9e3792691b2e62b929c092030273bb87ebd9564e0c02196a5a9f69c458162f1b35099ac28e9b79b1c4035144b9d2dae4ad3e87d05a40d7ed4 namecoin.conf"