2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-07 16:32:28 +00:00
repo/extra/libffi/build

18 lines
366 B
Plaintext
Raw Normal View History

2019-07-23 13:15:56 +00:00
#!/bin/sh -e
./configure \
--prefix=/usr \
2019-10-08 08:14:08 +00:00
--includedir=/usr/include \
2019-07-23 13:15:56 +00:00
--with-pic
make
make DESTDIR="$1" install
# Fix location for headers.
2019-10-08 08:14:08 +00:00
mv "$1/usr/lib/libffi-3.2.1/include/" "$1/usr"
rmdir "$1/usr/lib/libffi-3.2.1"
2019-07-23 13:15:56 +00:00
2019-10-08 08:14:08 +00:00
# Fix location inside pkgconfig file.
2019-07-23 13:15:56 +00:00
sed -i -e '/^includedir=/{s,=.*,=/usr/include,g}' \
"$1/usr/lib/pkgconfig/libffi.pc"