Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/fpc/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-07-07 11:03:34 +0200
committerErich Eckner <git@eckner.net>2020-07-07 11:03:34 +0200
commitc708201806b57b11d36dbd6d00d3e512bcabf5da (patch)
treee9f67b1050fd548e1c9656d519c162e3c256e558 /community/fpc/PKGBUILD
parent8680ae4aef45f84e155680f9516bbb8153d5eb62 (diff)
community/fpc: _pkgver needs to be set *after* installing the dependencies - else, ppc386 cannot be found
Diffstat (limited to 'community/fpc/PKGBUILD')
-rw-r--r--community/fpc/PKGBUILD13
1 files changed, 4 insertions, 9 deletions
diff --git a/community/fpc/PKGBUILD b/community/fpc/PKGBUILD
index b5f8756c..71bd6540 100644
--- a/community/fpc/PKGBUILD
+++ b/community/fpc/PKGBUILD
@@ -5,16 +5,10 @@
# a ppc386 symlink in build (PP variable) because the Makefile is trying to
# guess the target platform by executing fpc
-_pkgver=$(
- find /usr/lib/fpc -name ppc386 \
- | cut -d/ -f5 \
- | sort -V \
- | tail -n1
-)
-
eval "$(
declare -f package | \
sed '
+ 2 a _pkgver=$(find /usr/lib/fpc -name ppc386 | cut -d/ -f5 | sort -V | tail -n1)
/"\$CARCH" = "x86_64"/ {
p
s@ppcx64@ppc386@g
@@ -24,10 +18,11 @@ eval "$(
p
s@i486@pentium4@
}
- s@NOGDB=1@NOGDB=1 PP=/usr/lib/fpc/'"$_pkgver"'/ppc386 @
+ s@NOGDB=1@NOGDB=1 PP=/usr/lib/fpc/$_pkgver/ppc386 @
'
declare -f build | \
sed '
- s@NOGDB=1@NOGDB=1 PP=/usr/lib/fpc/'"$_pkgver"'/ppc386 @
+ 2 a _pkgver=$(find /usr/lib/fpc -name ppc386 | cut -d/ -f5 | sort -V | tail -n1)
+ s@NOGDB=1@NOGDB=1 PP=/usr/lib/fpc/$_pkgver/ppc386 @
'
)"