void-packages/srcpkgs/libbsd/template
Jürgen Buchmüller 3ead2f703e libbsd: really fix cross arm*-musl
Install a copy of GNU libc's a.out.h and bits/a.out.h to
have access to all the structures and constants macros.
2015-10-31 14:59:54 +01:00

32 lines
852 B
Bash

# Template file for 'libbsd'
pkgname=libbsd
version=0.7.0
revision=4
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
cp -pR ${FILESDIR}/* include/bsd
;;
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
}
}