2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-23 07:40:11 -07:00
repo/extra/libffi/build
2019-08-11 01:46:17 +00:00

21 lines
396 B
Bash
Executable File

#!/bin/sh -e
./configure \
--prefix=/usr \
--with-pic
make
make DESTDIR="$1" install
# Fix location for headers.
mkdir -p "$1/usr/include"
mv "$1/usr/lib/libffi-3.2.1/include/"*.h \
"$1/usr/include"
rmdir "$1/usr/lib/libffi-3.2.1/include"
sed -i -e '/^includedir=/{s,=.*,=/usr/include,g}' \
"$1/usr/lib/pkgconfig/libffi.pc"
# Remove all info files.
rm -rf "$1/usr/share/info"