compat-32/libffi-32/Pkgfile

29 lines
691 B
Plaintext
Raw Normal View History

# Description: Portable Foreign Function Interface Library
# URL: http://sourceware.org/libffi/
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
2017-07-09 06:01:59 +02:00
# Depends on: libffi
name=libffi-32
2022-03-02 18:34:10 +01:00
version=3.4.2
2019-11-28 15:00:27 +01:00
release=1
2022-03-02 18:34:10 +01:00
source=(https://github.com/libffi/libffi/releases/download/v$version/libffi-$version.tar.gz)
build() {
2017-07-09 06:01:59 +02:00
cd ${name%-*}-$version
sed -e '/^includesdir/ s/$(libdir).*$/$(includedir)/' \
-i include/Makefile.in
sed \
-e '/^includedir/ s/=.*$/=@includedir@/' \
-e 's/^Cflags: -I${includedir}/Cflags:/' \
-i libffi.pc.in
2014-11-15 03:50:50 +01:00
./configure \
--prefix=/usr \
2017-07-09 06:01:59 +02:00
--libdir=/usr/lib32
2014-11-15 03:50:50 +01:00
make
make DESTDIR=$PKG install
2017-07-09 06:01:59 +02:00
rm -r $PKG/usr/{include,share/man,share}
}