2009-11-17 03:38:03 +01:00
|
|
|
# Template file for 'libffi'
|
|
|
|
pkgname=libffi
|
2014-11-19 07:39:37 +01:00
|
|
|
version=3.2.1
|
|
|
|
revision=1
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-11-19 07:39:37 +01:00
|
|
|
configure_args="--includedir=/usr/include --with-pic"
|
2009-11-17 03:38:03 +01:00
|
|
|
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"
|
2013-02-06 19:21:43 +01:00
|
|
|
distfiles="ftp://sourceware.org/pub/$pkgname/$pkgname-$version.tar.gz"
|
2014-11-19 07:39:37 +01:00
|
|
|
checksum=d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37
|
2014-06-06 05:22:23 +02:00
|
|
|
|
|
|
|
pre_install() {
|
|
|
|
vmkdir usr/lib
|
|
|
|
ln -s lib ${DESTDIR}/usr/lib64
|
|
|
|
}
|
2013-02-06 19:21:43 +01:00
|
|
|
post_install() {
|
2010-11-11 11:49:34 +01:00
|
|
|
# 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
|
2010-11-11 11:49:34 +01:00
|
|
|
}
|
2013-04-11 11:03:43 +02:00
|
|
|
|
|
|
|
libffi-devel_package() {
|
2014-06-06 05:22:23 +02:00
|
|
|
depends="libffi>=${version}_${revision}"
|
2014-01-01 16:10:11 +01:00
|
|
|
short_desc+=" - development files"
|
2013-04-11 11:03:43 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2014-06-06 05:22:23 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-11 11:03:43 +02:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|