void-packages/srcpkgs/libbsd/template

33 lines
870 B
Bash
Raw Normal View History

2013-03-21 11:07:33 +00:00
# Template file for 'libbsd'
pkgname=libbsd
2014-08-12 05:28:25 +00:00
version=0.7.0
2015-05-21 19:29:21 +00:00
revision=2
2013-03-21 11:07:33 +00:00
build_style=gnu-configure
short_desc="Provides useful functions commonly found on BSD system"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2013-08-18 08:07:57 +00:00
homepage="http://libbsd.freedesktop.org/"
2013-03-21 11:07:33 +00:00
license="BSD"
2013-08-18 08:07:57 +00:00
distfiles="http://libbsd.freedesktop.org/releases/libbsd-${version}.tar.xz"
2014-08-12 05:28:25 +00:00
checksum=0f3b0e17e5c34c038126e0a04351b11e23c6101a7d0ce3beeab29bb6415c10bb
2015-05-21 19:29:21 +00:00
post_extract() {
2015-05-21 19:34:39 +00:00
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
2015-05-21 19:29:21 +00:00
}
libbsd-devel_package() {
2014-02-20 16:04:24 +00:00
depends="${sourcepkg}>=${version}_${revision}"
2013-08-18 08:07:57 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
2013-08-18 08:07:57 +00:00
vmove "usr/lib/*.so"
vmove usr/share
}
}