summaryrefslogtreecommitdiff
path: root/community/fpc/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-05-20 09:26:44 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-05-20 09:26:44 +0200
commit39c366b9fc1b83a741177d0b415a20147a18a3c0 (patch)
tree24b520a26e042f10306b53e0fb579bab6343132b /community/fpc/PKGBUILD
parent6d3d853af3b9042559c2d86a7e3907f97921fb28 (diff)
parentaad2fba0fc475162b566f1577d8e7a020cd9e80d (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/libcss/PKGBUILD extra/kdenetwork/PKGBUILD extra/xorg-server/PKGBUILD testing/openmpi/PKGBUILD testing/xf86-video-ati/PKGBUILD testing/xorg-server/PKGBUILD
Diffstat (limited to 'community/fpc/PKGBUILD')
-rw-r--r--community/fpc/PKGBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/community/fpc/PKGBUILD b/community/fpc/PKGBUILD
index a2bb91007..44cd7b43e 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' 'mips64el')
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" {} \;