Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

fix libffi build.sh shellcheck warnings #609

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions libffi/build.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
./configure --prefix=$PREFIX || exit 1
make || exit 1
make install || exit 1
#!/bin/bash

cd $PREFIX
./configure --prefix="$PREFIX"
make
make install

cd "$PREFIX"
rm -rf share
mv lib/libffi-*/include include
mv lib/libffi-*/include/* include

if [ `uname -m` == x86_64 ]; then
if [ "$(uname -m)" == x86_64 ]; then
mv lib64/* lib/
rmdir lib64
fi

# shellcheck disable=SC2016
sed -i s/'includedir=.*'/'includedir=\${exec_prefix}\/include'/g lib/pkgconfig/libffi.pc