summaryrefslogtreecommitdiff
path: root/community/fpc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/fpc/PKGBUILD')
-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" {} \;
}