# Template build file for 'plib'
pkgname=plib
version=1.8.5
revision=2
build_style=gnu-configure
short_desc="suite of Portable Game Libraries"
maintainer="Enno Boland <eb@s01.de>"
license="LGPL2"
homepage="http://plib.sourceforge.net"
distfiles="http://plib.sourceforge.net/dist/plib-1.8.5.tar.gz"
makedepends="MesaLib-devel libX11-devel libXi-devel libXmu-devel"
hostmakedepends="autoconf automake libtool"
checksum=485b22bf6fdc0da067e34ead5e26f002b76326f6371e2ae006415dea6a380a32
configure_args="--enable-shared --disable-static"

pre_configure() {
	autoreconf -i
}

plib-devel_package() {
	depends="plib>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
	}
}
