void-packages/srcpkgs/libffi/template

38 lines
978 B
Plaintext
Raw Normal View History

# Template file for 'libffi'
pkgname=libffi
version=3.1
revision=1
build_style=gnu-configure
configure_args="--includedir=/usr/include --with-pic=yes"
short_desc="Library supporting Foreign Function Interfaces"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-08-27 08:12:57 +02:00
homepage="http://sourceware.org/libffi"
license="MIT"
distfiles="ftp://sourceware.org/pub/$pkgname/$pkgname-$version.tar.gz"
checksum=97feeeadca5e21870fa4433bc953d1b3af3f698d5df8a428f68b73cd60aef6eb
pre_install() {
vmkdir usr/lib
ln -s lib ${DESTDIR}/usr/lib64
}
post_install() {
# Fix includedir for pkg-config file.
sed -i -e "s|\${libdir}/libffi-${version}|/usr|" \
${DESTDIR}/usr/lib/pkgconfig/libffi.pc
2011-08-27 08:12:57 +02:00
vinstall LICENSE 644 usr/share/licenses/libffi
rm ${DESTDIR}/usr/lib64
}
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
}
}