2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-22 23:30:05 -07:00
repo/extra/libffi/build

18 lines
363 B
Plaintext
Raw Normal View History

2019-07-23 07:15:56 -06:00
#!/bin/sh -e
./configure \
--prefix=/usr \
2019-10-08 02:14:08 -06:00
--includedir=/usr/include \
2019-07-23 07:15:56 -06:00
--with-pic
make
make DESTDIR="$1" install
2019-11-24 02:37:51 -07:00
# 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 '/^includedir=/{s,=.*,=/usr/include,g}' \
"$1/usr/lib/pkgconfig/libffi.pc"