void-packages/srcpkgs/keyutils/template

50 lines
1.3 KiB
Bash

# Template file for 'keyutils'
pkgname=keyutils
version=1.6
revision=1
makedepends="mit-krb5-devel"
short_desc="Linux Key Management Utilities"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="http://www.kernel.org"
distfiles="http://people.redhat.com/~dhowells/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=d3aef20cec0005c0fa6b4be40079885567473185b1a57b629b030e67942c7115
conf_files="/etc/request-key.conf"
pre_build() {
# Fix musl build - doesn't hurt glibc either
sed -e "/#include <stdlib.h>/a #include <limits.h>" \
-i key.dns_resolver.c
}
do_build() {
make CFLAGS="${CFLAGS} -fPIC" LDFLAGS="${LDFLAGS}" SBINDIR='/usr/bin' \
LIBDIR='/usr/lib' USRLIBDIR='/usr/lib' \
BINDIR='/usr/bin' ${makejobs}
}
do_install() {
make DESTDIR=${DESTDIR} CFLAGS="${CFLAGS} -fPIC" LDFLAGS="${LDFLAGS}" \
LIBDIR='/usr/lib' USRLIBDIR='/usr/lib' SBINDIR='/usr/bin' \
BINDIR='/usr/bin' install
}
libkeyutils_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
keyutils-devel_package() {
depends="libkeyutils>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share/man/man3
vmove usr/lib/pkgconfig
}
}