aboutsummaryrefslogtreecommitdiffstats
path: root/testing/i2pd/APKBUILD
blob: 6b9692a779502b62b85013effbc70d6bc197db56 (plain) (blame)
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
# Contributor: l-n-s <supervillain@riseup.net>
# Maintainer: l-n-s <supervillain@riseup.net>
pkgname=i2pd
pkgver=2.18.0
pkgrel=1
pkgdesc="I2P Router written in C++"
url="https://github.com/PurpleI2P/i2pd"
arch="all !aarch64" # build fails on aarch64
license="BSD"
pkgusers="i2pd"
depends="boost-filesystem boost-system boost-program_options boost-date_time boost-thread boost-iostreams openssl musl-utils libstdc++"
makedepends="boost-dev openssl-dev openssl"
options="!check"
install="$pkgname.pre-install"
source="https://github.com/PurpleI2P/i2pd/archive/$pkgver/$pkgname-$pkgver.tar.gz
	i2pd.initd
	i2pd.confd
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	
	make 
}

package() {
	cd "$builddir"

	install -D -m 755 i2pd "$pkgdir"/usr/sbin/i2pd

	install -dm755 -o $pkgusers \
		"$pkgdir"/etc/$pkgname \
		"$pkgdir"/usr/share/$pkgname \
		"$pkgdir"/var/lib/$pkgname \
		"$pkgdir"/var/log/$pkgname

	install -D -m 755 contrib/tunnels.conf "$pkgdir"/etc/i2pd/tunnels.conf
	install -D -m 755 contrib/i2pd.conf "$pkgdir"/etc/i2pd/i2pd.conf
	cp -r contrib/certificates/ "$pkgdir"/usr/share/$pkgname/certificates
	ln -s /usr/share/$pkgname/certificates "$pkgdir"/var/lib/$pkgname/certificates

	install -m755 -D "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd \
		"$pkgdir"/etc/conf.d/$pkgname
}

sha512sums="dc8e0f4df25188e4d72ea6ffa2c36e48a7d2103d025730b40e226ab631724a9a07a4dc03a1a3d08328972c98020c44535661820add80374f1dabdf3fc848ef84  i2pd-2.18.0.tar.gz
7911b5e06492ea25c90780a25e5d02f957c655153f41dd89c1f1885fb52ccdaf7c2e643ca3cd2f7d769a1d8c6d1790fcd4f8737abd21eed808940e1997ae6cb4  i2pd.initd
ba94e5505f4eeb9a32159aa0a3b7f68ff077abb9704800f70502ac75fd5bcfcb20450ebd983d0523beca2d13e718d7bf888f53ec455d1f41701c16d09c3b2d28  i2pd.confd"