# Contributor: l-n-s # Maintainer: l-n-s pkgname=i2pd pkgver=2.21.1 pkgrel=2 pkgdesc="I2P Router written in C++" url="https://github.com/PurpleI2P/i2pd" arch="all !aarch64" # build fails on aarch64 license="BSD" pkgusers="i2pd" depends="musl-utils" makedepends="boost-dev openssl-dev libressl zlib-dev" options="!check" install="$pkgname.pre-install" source="https://github.com/PurpleI2P/i2pd/archive/$pkgver/$pkgname-$pkgver.tar.gz i2pd.initd i2pd.confd " subpackages="$pkgname-openrc" 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="e73c0c1f624b468a4a30996de77b27f5a2166d16b57724ec58647e5630f9e988052b11962fa47f318403ccd4c675a8d7c8b0ddcaa79666cea9743a6437fc4fd2 i2pd-2.21.1.tar.gz 5a95beef635fc2f5beecee314964fd41713ed61f92c4e972276208e0a2c86604c2b42a8e922863fc658a7a5789c9f43fddf7f76350fc281a44f2f42258a01201 i2pd.initd ba94e5505f4eeb9a32159aa0a3b7f68ff077abb9704800f70502ac75fd5bcfcb20450ebd983d0523beca2d13e718d7bf888f53ec455d1f41701c16d09c3b2d28 i2pd.confd"