summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/glib2/PKGBUILD8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/glib2/PKGBUILD b/core/glib2/PKGBUILD
index d30aef16..5589754c 100644
--- a/core/glib2/PKGBUILD
+++ b/core/glib2/PKGBUILD
@@ -23,3 +23,11 @@ if [ "${CARCH}" = "i486" ]; then
'
)"
fi
+
+# remove usr/lib/installed-tests only if it exists
+eval "$(
+ declare -f package_glib2 | \
+ sed '
+ s@rm -r "$pkgdir/usr/lib/installed-tests@test -f "$pkgdir/usr/lib/installed-tests" \&\& rm -r "$pkgdir/usr/lib/installed-tests@
+ '
+)"