# Template file for 'musl-legacy-compat'
pkgname=musl-legacy-compat
version=0.3
revision=3
bootstrap=yes
short_desc="Legacy compatibility headers for the musl libc"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="BSD-2-Clause, BSD-3-Clause"
homepage="http://www.voidlinux.org"

case "$XBPS_TARGET_MACHINE" in
	*-musl) ;;
	#*) broken="Only valid for musl systems";;
esac

do_install() {
	for f in ${FILESDIR}/*.h; do
		vinstall ${f} 644 usr/include/sys
	done

	sed -n '3,32p' < ${FILESDIR}/queue.h > LICENSE.BSD-3-Clause
	sed -n '2,26p' < ${FILESDIR}/tree.h > LICENSE.BSD-2-Clause

	vlicense LICENSE.BSD-3-Clause
	vlicense LICENSE.BSD-2-Clause
}
