summaryrefslogtreecommitdiff
path: root/community/fpc
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-19 00:02:33 +0000
committerroot <root@rshg054.dnsready.net>2012-05-19 00:02:33 +0000
commit5d334c7470b5851fbacd4545c8ee0ea676a21ccc (patch)
tree9fd6a98989a409178f5db098aaf2ffa8a646dd48 /community/fpc
parent2f104ecf78d6a93ba8d67273b76364cb1365a6cf (diff)
Sat May 19 00:02:33 UTC 2012
Diffstat (limited to 'community/fpc')
-rw-r--r--community/fpc/PKGBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/community/fpc/PKGBUILD b/community/fpc/PKGBUILD
index e48fffec7..554fedb39 100644
--- a/community/fpc/PKGBUILD
+++ b/community/fpc/PKGBUILD
@@ -1,14 +1,15 @@
-# $Id: PKGBUILD 61619 2012-01-04 22:27:59Z spupykin $
+# $Id: PKGBUILD 70842 2012-05-17 18:20:47Z idevolder $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Valeriy Lyasotskiy <onestep@ukr.net>
# Contributor: Jan Willemson <janwil@hot.ee>
# Contributor: Hugo Ideler <hugoideler@dse.nl>
+# Contributor: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
# Original PKGBUILD: Andre Naumann <anaumann@SPARCed.org>
# See http://bbs.archlinux.org/viewtopic.php?t=9318&highlight=fpc
pkgname=fpc
pkgver=2.6.0
-pkgrel=1
+pkgrel=2
pkgdesc="The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit Pascal Compiler. It comes with fully TP 7.0 compatible run-time library."
arch=('i686' 'x86_64')
url="http://www.freepascal.org/"
@@ -45,6 +46,9 @@ package() {
mkdir -p ${pkgdir}/etc
${pkgdir}/usr/lib/fpc/${pkgver}/samplecfg $pkgdir/usr/lib/fpc/${pkgver} ${pkgdir}/etc
+ # use -fPIC by default
+ echo -e "#ifdef cpux86_64\n# for x86_64 use -fPIC by default\n-Cg\n#endif" >> "$pkgdir/etc/fpc.cfg"
+
mv $pkgdir/usr/man $pkgdir/usr/share/
find $pkgdir/etc/ -type f -exec sed -i "s|$pkgdir||g" {} \;