index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | community/fpc/PKGBUILD | 11 |
diff --git a/community/fpc/PKGBUILD b/community/fpc/PKGBUILD index 4e121deb..e73fc0e3 100644 --- a/community/fpc/PKGBUILD +++ b/community/fpc/PKGBUILD @@ -5,6 +5,13 @@ # 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 ' @@ -17,10 +24,10 @@ 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 @ + s@NOGDB=1@NOGDB=1 PP=/usr/lib/fpc/$_pkgver/ppc386 @ ' )" |