2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-24 16:30:04 -07:00
repo/extra/libffi/build
2019-10-08 11:14:08 +03:00

18 lines
366 B
Bash
Executable File

#!/bin/sh -e
./configure \
--prefix=/usr \
--includedir=/usr/include \
--with-pic
make
make DESTDIR="$1" install
# Fix location for headers.
mv "$1/usr/lib/libffi-3.2.1/include/" "$1/usr"
rmdir "$1/usr/lib/libffi-3.2.1"
# Fix location inside pkgconfig file.
sed -i -e '/^includedir=/{s,=.*,=/usr/include,g}' \
"$1/usr/lib/pkgconfig/libffi.pc"