Update PKGBUILD: add check to prevent duplicate copy of libfpcbep.so

This commit is contained in:
archos 2024-10-25 20:51:49 +02:00
parent 90056f5bb4
commit 4cfba7e5ff

View File

@ -22,7 +22,10 @@ sha256sums=(
prepare() { prepare() {
libfpcbep_path=$(find . -name 'libfpcbep.so') libfpcbep_path=$(find . -name 'libfpcbep.so')
cp -f $libfpcbep_path $_pkgname # Kopíruje pouze pokud soubor neexistuje v cíli
if [ ! -e "$_pkgname/libfpcbep.so" ]; then
cp -f $libfpcbep_path $_pkgname
fi
cd $_pkgname cd $_pkgname
# patch meson.build # patch meson.build
# use '+' as sed delimiter # use '+' as sed delimiter