Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/xaos/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/xaos/PKGBUILD')
-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'"'"'
+ '
+)"