2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-10-04 00:10:58 -06: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
# Fix location for headers.
2019-10-08 02:14:08 -06:00
mv "$1/usr/lib/libffi-3.2.1/include/" "$1/usr"
rmdir "$1/usr/lib/libffi-3.2.1"
2019-07-23 07:15:56 -06:00
2019-10-08 02:14:08 -06:00
# Fix location inside pkgconfig file.
2019-11-17 18:02:17 -07:00
sed -i '/^includedir=/{s,=.*,=/usr/include,g}' \
2019-07-23 07:15:56 -06:00
"$1/usr/lib/pkgconfig/libffi.pc"