void-packages/srcpkgs/libffi/template
2020-03-25 02:13:32 +01:00

34 lines
836 B
Bash

# Template file for 'libffi'
pkgname=libffi
version=3.3
revision=2
build_style=gnu-configure
configure_args="--includedir=/usr/include --with-pic"
checkdepends="dejagnu"
short_desc="Library supporting Foreign Function Interfaces"
maintainer="q66 <daniel@octaforge.org>"
license="MIT"
homepage="http://sourceware.org/libffi"
distfiles="ftp://sourceware.org/pub/$pkgname/$pkgname-$version.tar.gz"
checksum=72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056
pre_install() {
vmkdir usr/lib
ln -s lib ${DESTDIR}/usr/lib64
}
post_install() {
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
}
}