void-packages/srcpkgs/i2pd/template
2018-03-04 07:50:07 +00:00

34 lines
926 B
Bash

# Template file for 'i2pd'
pkgname=i2pd
version=2.15.0
revision=2
short_desc="I2P Daemon - a full-featured C++ implementation of I2P client"
homepage="http://i2pd.website/"
license="BSD"
build_style=gnu-makefile
make_build_args="USE_UPNP=yes"
maintainer="Obosob <obosob@riseup.net>"
makedepends="zlib-devel boost-devel libressl-devel miniupnpc-devel"
distfiles="https://github.com/PurpleI2P/i2pd/archive/${version}.tar.gz"
checksum=87649a1963b1d1b8f9424c0bccbdf6bbde0bb87db8dcf0b5c61f4c7f13181b86
system_accounts="_i2pd"
case "${XBPS_TARGET_MACHINE}" in
aarch64*|armv*|mips*) make_build_args+=" USE_AESNI=no USE_AVX=no" ;;
esac
case "${XBPS_TARGET_MACHINE}" in
armv[56]*|mips*) makedepends+=" libatomic-devel"; LDFLAGS="-latomic" ;;
esac
do_install() {
vbin i2pd
vman debian/i2pd.1
vsconf contrib/i2pd.conf
vsconf contrib/tunnels.conf
vsconf contrib/subscriptions.txt
vlicense LICENSE
}
post_install() {
vsv i2pd
}