mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-23 15:50:06 -07: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"
|