diff options
author | Erich Eckner <git@eckner.net> | 2020-03-05 10:12:42 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-03-05 10:12:42 +0100 |
commit | 2daf5647b6961ff6281d5c89b50783e5258a6b4b (patch) | |
tree | 0ff7915683c1d5e0095605912940f94cb65c1643 /community/xaos | |
parent | 3271f6ab8a92141c0e6e696b327198795f611006 (diff) | |
download | packages-2daf5647b6961ff6281d5c89b50783e5258a6b4b.tar.xz |
do not overwrite prepare if it already existed
Diffstat (limited to 'community/xaos')
-rw-r--r-- | community/xaos/PKGBUILD | 16 |
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'"'"' + ' +)" |