blob: 7a7d91dbc586c49d18dd063353fd9ffa124f915d (
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# Maintainer: redfish <redfish@galactica.pw>
# Uploader: robertfoster
pkgname=namecoin-core
pkgver=25.1
pkgrel=1
pkgdesc="Namecoin Core headless P2P node"
arch=('i686' 'x86_64' 'armv7h')
url="https://namecoin.org"
depends=('boost'
'libevent'
'zeromq'
'miniupnpc')
makedepends=('autoconf'
'automake'
'binutils'
'gcc'
'libtool'
'm4'
'make'
'pkg-config')
license=('MIT')
source=(${pkgname%-core}-$pkgver.tar.gz::https://github.com/namecoin/namecoin-core/archive/nc$pkgver.tar.gz
namecoin.conf
namecoin.logrotate
namecoin.service
namecoin.tmpfiles.conf
namecoin-reindex.service)
backup=('etc/namecoin/namecoin.conf'
'etc/logrotate.d/namecoin')
provides=('namecoin-cli' 'namecoin-daemon' 'namecoin-tx')
conflicts=('namecoin-cli' 'namecoin-daemon' 'namecoin-qt' 'namecoin-tx')
install=namecoin.install
build() {
cd "$srcdir/${pkgname}-nc$pkgver"
msg2 'Building...'
./autogen.sh
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--libexecdir=/usr/lib/namecoin \
--sysconfdir=/etc \
--sharedstatedir=/usr/share/namecoin \
--localstatedir=/var/lib/namecoin \
--enable-hardening \
--with-gui=no \
--disable-wallet \
--with-gnu-ld
make
}
package() {
cd "$srcdir/${pkgname}-nc$pkgver"
msg2 'Installing license...'
install -Dm 644 COPYING -t "$pkgdir/usr/share/licenses/${pkgname%-core}"
msg2 'Installing documentation...'
install -dm 755 "$pkgdir/usr/share/doc/namecoin"
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/namecoin/$_doc"
done
msg2 'Installing namecoin...'
make DESTDIR="$pkgdir" install
install -Dm 755 share/rpcauth/rpcauth.py $pkgdir/usr/bin/namecoin-rpcauth
# Rename files left over from forking, because conflict with btc packages
mv $pkgdir/usr/share/doc/namecoin/{bitcoin,namecoin}-conf.md
msg2 'Installing namecoin.conf...'
install -Dm 600 "$srcdir/namecoin.conf" -t "$pkgdir/etc/namecoin"
msg2 'Installing namecoin.service...'
install -Dm 644 "$srcdir/namecoin.service" -t "$pkgdir/usr/lib/systemd/system"
install -Dm 644 "$srcdir/namecoin-reindex.service" \
-t "$pkgdir/usr/lib/systemd/system"
msg2 'Installing namecoin.logrotate...'
install -Dm 644 "$srcdir/namecoin.logrotate" "$pkgdir/etc/logrotate.d/namecoin"
msg2 'Installing namecoin.tmpfiles.conf...'
install -Dm 644 "$srcdir/namecoin.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/namecoin.conf"
msg2 'Cleaning up pkgdir...'
find "$pkgdir" -type f -name .gitignore -exec rm -r '{}' +
}
sha256sums=('599243be4e8e81b607322eaac7010f84d55a3bba7857d664469d41bf52f4e22e'
'97e7b8e5d402eef231e20b62436d830a955c87f389b20ea663bf5a6b8f7b0ff7'
'ea48c1dda89c153ea526f07ffa2c46a6813f5075003d5a4098c3675aacb55673'
'9ce8f53b5c791eb0c9fe930bd483d23228c2e6ee2ccee9a70af53af4615abfa1'
'afdcd0dfd06d549c09fbaef77bd9bfc673dc3bc2c9387eda4b4c0ae15a95594b'
'98ac6d450e2c35e9ed4923c26a013c24165719c61f54d056511dd92061a4da5c')
|