void-packages/srcpkgs/gnunet/template
2020-02-08 17:26:11 +01:00

40 lines
1 KiB
Bash

# Template file for 'gnunet'
pkgname=gnunet
version=0.11.6
revision=1
wrksrc="${pkgname}-v${version}"
build_style=gnu-configure
conf_files="/etc/gnunet/gnunet.conf"
hostmakedepends="autoconf automake gettext-devel libtool"
makedepends="libgcrypt-devel libidn-devel
libltdl-devel libunistring-devel sqlite-devel zlib-devel"
short_desc="Framework for secure peer-to-peer networking"
maintainer="Anachron <gith@cron.world>"
license="GPL-3.0-or-later"
homepage="https://gnunet.org"
distfiles="https://git.gnunet.org/gnunet.git/snapshot/${pkgname}-v${version}.tar.gz"
checksum=0a7dbdd8b156722ac71e66129f4c4d9f62062e9172c7340fe244039f0f0a25ae
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
pre_configure() {
./bootstrap
}
post_install() {
vmkdir etc/gnunet
vcopy "${FILESDIR}/gnunet.conf" etc/gnunet/gnunet.conf
vsv gnunet
}
gnunet-devel_package() {
depends="${pkgname}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}