# Contributor: Jan Willemson # Contributor: Hugo Ideler # Original PKGBUILD: Andre Naumann # See http://bbs.archlinux.org/viewtopic.php?t=9318&highlight=fpc pkgname=fpc pkgver=2.0.2 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." url="http://www.freepascal.org/" groups= provides= backup=("etc/fpc.cfg") depends=('bash' 'gpm') source=("ftp://ftp.freepascal.org/pub/fpc/dist/i386-linux-2.0.2/fpc-$pkgver.i386-linux.tar") md5sums=('a7698aaa74861ef1aea8f39e65082f03') build() { cd $startdir/src sed -ie 's@\$LIBDIR/samplecfg \$LIBDIR@echo Expr Removed@' install.sh install.sh* || exit -1 echo $startdir/pkg/usr | ./install.sh if [ ! -d $startdir/pkg/etc ]; then mkdir $startdir/pkg/etc fi echo "Writing our own config file..." $startdir/pkg/usr/lib/fpc/$pkgver/samplecfg /usr/lib/fpc/$pkgver $startdir/pkg/etc || exit -1 cd $startdir/pkg rm usr/bin/ppc386 ln -s /usr/lib/fpc/2.0.2/ppc386 usr/bin chown root:root $startdir/pkg/usr/lib/fpc/lexyacc/* }