25 lines
580 B
Plaintext
25 lines
580 B
Plaintext
# Description: Portable Foreign Function Interface Library
|
|
# URL: https://sourceware.org/libffi/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: libffi
|
|
|
|
name=libffi-32
|
|
version=3.4.6
|
|
release=1
|
|
source=(https://github.com/libffi/libffi/releases/download/v$version/libffi-$version.tar.gz)
|
|
|
|
build() {
|
|
cd ${name%-*}-$version
|
|
|
|
# ffi.h is target-dependent
|
|
./configure \
|
|
--build=i686-pc-linux-gnu \
|
|
--includedir=/usr/lib32/libffi/include \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib32
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/{share/man,share}
|
|
}
|