42 lines
1.1 KiB
Bash
42 lines
1.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
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
armv[56]*|mips*|ppc|ppc-musl)
|
|
makedepends+=" libatomic-devel";;
|
|
esac
|
|
|
|
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"
|
|
}
|
|
}
|