# Template file for 'libbsd'
pkgname=libbsd
version=0.4.2
revision=1
build_style=gnu-configure
short_desc="Provides useful functions commonly found on BSD system"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://libbsd.freedesktop.org/wiki/"
license="BSD"
distfiles="http://libbsd.freedesktop.org/releases/libbsd-${version}.tar.gz"
checksum=922b4885e0ccfd64b92fcacdb3fba18024fcab1e0c1b073f5ec0fe76388cbfdc
long_desc="
 This library provides useful functions commonly found on BSD systems, and
 lacking on others like GNU systems, thus making it easier to port projects
 with strong BSD origins, without needing to embed the same code over and
 over again on each project."

libbsd-devel_package() {
	depends="${sourcepkg}>=${version}"
	short_desc="${short_desc} -- development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove usr/share
	}
}

libbsd_package() {
	pkg_install() {
		vmove usr
	}
}
