mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-22 05:56:19 +00:00
18 lines
366 B
Bash
Executable File
18 lines
366 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--includedir=/usr/include \
|
|
--with-pic
|
|
|
|
make
|
|
make DESTDIR="$1" install
|
|
|
|
# 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 -e '/^includedir=/{s,=.*,=/usr/include,g}' \
|
|
"$1/usr/lib/pkgconfig/libffi.pc"
|