From 4cfba7e5ff2bfbdffebb1a0787f5c451eb74f103 Mon Sep 17 00:00:00 2001 From: archos Date: Fri, 25 Oct 2024 20:51:49 +0200 Subject: [PATCH] Update PKGBUILD: add check to prevent duplicate copy of libfpcbep.so --- PKGBUILD | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index a9389cc..2baf0c4 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -22,7 +22,10 @@ sha256sums=( prepare() { 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 # patch meson.build # use '+' as sed delimiter