void-packages/srcpkgs/libffi/template
Jürgen Buchmüller a369f4e48d
libffi: import (some) Debian patches
The Debian team has some patches which we were missing.
This set does not address the ppc64* failing tests, though.
I did not include patches for alpha or riscv becase we
do not (yet) support these target architectures.

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2019-05-08 15:33:50 +02:00

37 lines
976 B
Bash

# Template file for 'libffi'
pkgname=libffi
version=3.2.1
revision=6
build_style=gnu-configure
configure_args="--includedir=/usr/include --with-pic"
checkdepends="dejagnu"
short_desc="Library supporting Foreign Function Interfaces"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="MIT"
homepage="http://sourceware.org/libffi"
distfiles="ftp://sourceware.org/pub/$pkgname/$pkgname-$version.tar.gz"
checksum=d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37
pre_install() {
vmkdir usr/lib
ln -s lib ${DESTDIR}/usr/lib64
}
post_install() {
# Fix includedir for pkg-config file.
vsed -i -e "s|\${libdir}/libffi-${version}|/usr|" \
${DESTDIR}/usr/lib/pkgconfig/libffi.pc
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
}
}