void-packages/srcpkgs/libffi/template

37 lines
951 B
Bash
Raw Normal View History

# Template file for 'libffi'
pkgname=libffi
2014-11-19 07:39:37 +01:00
version=3.2.1
revision=1
build_style=gnu-configure
2014-11-19 07:39:37 +01:00
configure_args="--includedir=/usr/include --with-pic"
short_desc="Library supporting Foreign Function Interfaces"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
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"
2014-11-19 07:39:37 +01:00
checksum=d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37
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
2014-11-19 07:39:37 +01:00
vlicense LICENSE
rm -f ${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
}
}