summaryrefslogtreecommitdiff
path: root/community/smbnetfs
diff options
context:
space:
mode:
Diffstat (limited to 'community/smbnetfs')
-rw-r--r--community/smbnetfs/PKGBUILD12
1 files changed, 9 insertions, 3 deletions
diff --git a/community/smbnetfs/PKGBUILD b/community/smbnetfs/PKGBUILD
index 6c6147a8..8156b28e 100644
--- a/community/smbnetfs/PKGBUILD
+++ b/community/smbnetfs/PKGBUILD
@@ -1,4 +1,10 @@
# https://sourceforge.net/p/smbnetfs/git/ci/f0e109dcc9e14b914d8f5877b4482e79d24a0ad6/
-prepare() {
- sed -i '\,^#include <attr/xattr.h>$,d' "$srcdir"/$pkgname-$pkgver/src/function.c
-}
+eval "$(
+ {
+ declare -f prepare || \
+ printf 'prepare() {\n}\n'
+ } \
+ | sed '
+ $i sed -i '"'"'\,^#include <attr/xattr.h>$,d'"'"' "$srcdir"/$pkgname-$pkgver/src/function.c
+ '
+)"