mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-22 22:16:19 +00:00
18 lines
343 B
Plaintext
18 lines
343 B
Plaintext
|
#!/bin/sh -e
|
||
|
|
||
|
./configure \
|
||
|
--prefix=/usr \
|
||
|
--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"
|
||
|
|
||
|
sed -i -e '/^includedir=/{s,=.*,=/usr/include,g}' \
|
||
|
"$1/usr/lib/pkgconfig/libffi.pc"
|