summaryrefslogtreecommitdiff
path: root/community/fpc/PKGBUILD
blob: 49c09c9c5c908fe9acd6a8b3d50e5ee99c26d00a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# symlink for 32-bit Pascal compiler

# temporary:
# the package has been built wrongly in the past, so we have to force
# a ppc386 symlink in build (PP variable) because the Makefile is trying to
# guess the target platform by executing fpc

eval "$(
  declare -f package | \
    sed '
      s@"\$CARCH" = "x86_64"@"$CARCH" = "i686"@g
      s@ppcx64@ppc386@g
      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 @
    '
)"