2009-11-17 02:38:03 +00:00
|
|
|
# Template file for 'libffi'
|
|
|
|
pkgname=libffi
|
2011-08-27 06:12:57 +00:00
|
|
|
version=3.0.10
|
2013-04-11 09:03:43 +00:00
|
|
|
revision=5
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2012-03-18 06:35:15 +00:00
|
|
|
configure_args="--includedir=/usr/include --with-pic=yes"
|
2009-11-17 02:38:03 +00:00
|
|
|
short_desc="Library supporting Foreign Function Interfaces"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-08-27 06:12:57 +00:00
|
|
|
homepage="http://sourceware.org/libffi"
|
|
|
|
license="MIT"
|
2013-02-06 18:21:43 +00:00
|
|
|
distfiles="ftp://sourceware.org/pub/$pkgname/$pkgname-$version.tar.gz"
|
2011-08-27 06:12:57 +00:00
|
|
|
checksum=f01eb9027e9eb56aeaeef636649877756d475d714ef8b47f627f65bc5f3b492f
|
2010-11-11 10:49:34 +00:00
|
|
|
|
2013-02-06 18:21:43 +00:00
|
|
|
post_install() {
|
2010-11-11 10:49:34 +00:00
|
|
|
# Fix includedir for pkg-config file.
|
|
|
|
sed -i -e "s|\${libdir}/libffi-${version}|/usr|" \
|
|
|
|
${DESTDIR}/usr/lib/pkgconfig/libffi.pc
|
2011-08-27 06:12:57 +00:00
|
|
|
vinstall LICENSE 644 usr/share/licenses/libffi
|
2010-11-11 10:49:34 +00:00
|
|
|
}
|
2013-04-11 09:03:43 +00:00
|
|
|
|
|
|
|
libffi-devel_package() {
|
|
|
|
depends="libffi>=${version}"
|
2014-01-01 15:10:11 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-11 09:03:43 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|