# Template file for 'libffi'
pkgname=libffi
version=3.3
revision=2
build_style=gnu-configure
configure_args="--includedir=/usr/include --disable-multi-os-directory --with-pic"
checkdepends="dejagnu"
short_desc="Library supporting Foreign Function Interfaces"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://sourceware.org/libffi"
distfiles="ftp://sourceware.org/pub/$pkgname/$pkgname-$version.tar.gz"
checksum=72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056

post_install() {
	vlicense LICENSE
}

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