void-packages/srcpkgs/libbsd/template
2015-05-21 21:34:39 +02:00

32 lines
870 B
Bash

# Template file for 'libbsd'
pkgname=libbsd
version=0.7.0
revision=2
build_style=gnu-configure
short_desc="Provides useful functions commonly found on BSD system"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://libbsd.freedesktop.org/"
license="BSD"
distfiles="http://libbsd.freedesktop.org/releases/libbsd-${version}.tar.xz"
checksum=0f3b0e17e5c34c038126e0a04351b11e23c6101a7d0ce3beeab29bb6415c10bb
post_extract() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -i '1i#include <fcntl.h>' src/flopen.c src/nlist.c
sed -i '/#error/d' src/funopen.c
sed -i 's,<a.out.h>,<linux/a.out.h>,g' src/nlist.c
;;
esac
}
libbsd-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share
}
}