Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/xaos
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-03-05 10:12:42 +0100
committerErich Eckner <git@eckner.net>2020-03-05 10:12:42 +0100
commit2daf5647b6961ff6281d5c89b50783e5258a6b4b (patch)
tree0ff7915683c1d5e0095605912940f94cb65c1643 /community/xaos
parent3271f6ab8a92141c0e6e696b327198795f611006 (diff)
do not overwrite prepare if it already existed
Diffstat (limited to 'community/xaos')
-rw-r--r--community/xaos/PKGBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/community/xaos/PKGBUILD b/community/xaos/PKGBUILD
index d3dd57f2..15dd3e6c 100644
--- a/community/xaos/PKGBUILD
+++ b/community/xaos/PKGBUILD
@@ -1,8 +1,14 @@
source+=('xaos.patch')
sha256sums+=('b07cdc88be38a30a40bccc2f999bff50ae8a25fc10ed4f2f7c7e2ff117f085e5')
-prepare() {
- patch -p1 -N -i "$srcdir/xaos.patch" -d "$srcdir/$pkgname-$pkgver"
- gendesk -f -n --pkgname=$pkgname --pkgdesc="$pkgdesc" \
- --categories='Application;Graphics'
-}
+eval "$(
+ {
+ declare -f prepare || \
+ printf 'prepare() {\n}\n'
+ } \
+ | sed '
+ $i patch -p1 -N -i "$srcdir/xaos.patch" -d "$srcdir/$pkgname-$pkgver" \
+ gendesk -f -n --pkgname=$pkgname --pkgdesc="$pkgdesc" \\\
+ --categories='"'"'Application;Graphics'"'"'
+ '
+)"