2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 19:20:10 -07:00

libffi: make header fixes less yucky

This commit is contained in:
Dylan Araps 2019-10-08 11:14:08 +03:00
parent dd6d4be199
commit 475ddd8fba
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

View File

@ -2,15 +2,16 @@
./configure \
--prefix=/usr \
--includedir=/usr/include \
--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"
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"