summaryrefslogtreecommitdiff
path: root/community/fpc
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-01-05 23:14:48 +0000
committerroot <root@rshg054.dnsready.net>2012-01-05 23:14:48 +0000
commit817e58c278cb8ebee7743205877d0f67c431fcec (patch)
treef2716cc059272be15ea4691e8d40e6a998f4c936 /community/fpc
parent85828cc2c2c3ef5c0b9b03388b9323d3d163b389 (diff)
Thu Jan 5 23:14:48 UTC 2012
Diffstat (limited to 'community/fpc')
-rw-r--r--community/fpc/PKGBUILD27
1 files changed, 10 insertions, 17 deletions
diff --git a/community/fpc/PKGBUILD b/community/fpc/PKGBUILD
index 6402d9213..e48fffec7 100644
--- a/community/fpc/PKGBUILD
+++ b/community/fpc/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 53775 2011-08-08 08:05:51Z spupykin $
+# $Id: PKGBUILD 61619 2012-01-04 22:27:59Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Valeriy Lyasotskiy <onestep@ukr.net>
# Contributor: Jan Willemson <janwil@hot.ee>
@@ -7,8 +7,8 @@
# See http://bbs.archlinux.org/viewtopic.php?t=9318&highlight=fpc
pkgname=fpc
-pkgver=2.4.4
-pkgrel=3
+pkgver=2.6.0
+pkgrel=1
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/"
@@ -17,19 +17,15 @@ backup=("etc/fpc.cfg")
depends=(ncurses)
makedepends=(fpc)
options=(zipman)
-source=(ftp://ftp.freepascal.org/pub/fpc/dist/$pkgver/source/fpcbuild-$pkgver.tar.gz
- Makefile-mk382.diff)
-md5sums=('d069dfd3412bd0d26dcd1b81ac998305'
- 'a2242d261b055d08fa4d70e88ca1d1a7')
+source=(ftp://ftp.freepascal.org/pub/fpc/dist/$pkgver/source/fpcbuild-$pkgver.tar.gz)
+md5sums=('17375e665a4e1311f85812fe2754f609')
build() {
cd ${srcdir}/fpcbuild-$pkgver
pushd fpcsrc/compiler
- patch -uN Makefile.fpc $srcdir/Makefile-mk382.diff
fpcmake -Tall
popd
make NOGDB=1 build
-# make NOGDB=1 build OS_TARGET=win32 CPU_TARGET=i386
}
package() {
@@ -39,20 +35,17 @@ package() {
make -j1 NOGDB=1 PREFIX=${pkgdir}/usr install
-# make NOGDB=1 PREFIX=${pkgdir}/usr crossinstall OS_TARGET=win32 CPU_TARGET=i386
-# ln -s /usr/lib/fpc/$pkgver/ppcross386 $pkgdir/usr/bin/ppcross386
+ export PATH=$pkgdir/usr/bin:$PATH
- # install package license
- install -m 755 -d ${pkgdir}/usr/share/licenses/${pkgname}
- install -m 644 fpcsrc/rtl/COPYING.FPC ${pkgdir}/usr/share/licenses/${pkgname}/
+ install -Dm0644 fpcsrc/rtl/COPYING.FPC ${pkgdir}/usr/share/licenses/${pkgname}/COPYING.FPC
- # create symlink for compiler
[ "$CARCH" = "i686" ] && ln -s /usr/lib/fpc/${pkgver}/ppc386 ${pkgdir}/usr/bin/
[ "$CARCH" = "x86_64" ] && ln -s /usr/lib/fpc/${pkgver}/ppcx64 ${pkgdir}/usr/bin/
- # install sample config file
mkdir -p ${pkgdir}/etc
- ${pkgdir}/usr/lib/fpc/${pkgver}/samplecfg /usr/lib/fpc/${pkgver} ${pkgdir}/etc
+ ${pkgdir}/usr/lib/fpc/${pkgver}/samplecfg $pkgdir/usr/lib/fpc/${pkgver} ${pkgdir}/etc
mv $pkgdir/usr/man $pkgdir/usr/share/
+
+ find $pkgdir/etc/ -type f -exec sed -i "s|$pkgdir||g" {} \;
}