blob: 8066962532d792d336b1f56807f4de5e65f2b36d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=namecoin
pkgver=0.3.80
pkgrel=0
pkgdesc="Namecoin is a peer to peer DNS based on bitcoin"
url="https://github.com/namecoin/namecoin"
arch="all"
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"
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
$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
}
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
make || return 1
}
package() {
cd "$_builddir"/src
install -Dm755 namecoind "$pkgdir"/usr/bin/namecoind || 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
}
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
}
md5sums="7302f83d8390184139277255a6c1d484 namecoin-0.3.80.tar.gz
e4e43d7420191a94500189fe58a34a9c 20-boost-multithread-dynamic.patch
3350b82aec4eb1edb2555c0b0e8b0451 system-strlcpy.patch
9ecdbd9e17240075d064498a80fd50bd 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
4b413833527929ea863351469a5a4fc1e0ac365fe9df5e8a8304d8667acf8cea namecoin.conf"
sha512sums="6ff3fddd72cf8ed4224b42deb6a7ca50906262cb50c3ca5ccb419791daa474d52b9584cbc47240fa7546c3f23fe23b72af475f16d1dd110ab13098e3e60a5de6 namecoin-0.3.80.tar.gz
fc13574fef73cca20178e5895e2327567f40c91d25105d72b301a155f9025bfb494ce337096424fd71da8034fb0544562b8459c1d8ae2598ee503efd5995c6bf 20-boost-multithread-dynamic.patch
8701c8faf786420a7085a8e5d85080fe18f26e53ae346c1c897315fd7f8f00e1f1e326ed5917b0eefa8f74bc7470e8979c1b10515017584baa2e9feb3c39b205 system-strlcpy.patch
3048248b3da7300b0b3cb5667283badc17b41e6c90573604fd9ea9eb9933e93f9b1d6288846793b4e7a001a4cae5e52d2ce42e4bdc83e48f72aca6ee0e8ddd43 namecoin.initd
3f92cb9a5f66d0e9e3792691b2e62b929c092030273bb87ebd9564e0c02196a5a9f69c458162f1b35099ac28e9b79b1c4035144b9d2dae4ad3e87d05a40d7ed4 namecoin.conf"
|