#Maintainer: Shador #Former Maintainer: Pedro Sousa (pedrocgsousa~AT~gmail.com) pkgname=fpc pkgver=2.2.4 pkgrel=1 zenver=62 arch=i386 source=("http://switch.dl.sourceforge.net/sourceforge/freepascal/fpc-2.2.4.source.tar.gz") sourcetemplate="http://gaia.homelinux.org/packages/$pkgname/$pkgver-$zenver.$pkgrel/" url='http://www.freepascal.org/' #options=('norequiredbuilder') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname - Free Pascal compiler" "Free Pascal (aka FPK Pascal) is a 32 and 64 bit professional Pascal" "compiler. It is available for different processors: Intel x86," "Amd64/x86_64, PowerPC, Sparc. The discontinued 1.0 version also" "supports the Motorola 680x0. The following operating systems are" "supported: Linux, FreeBSD, Mac OS X/Darwin, Mac OS classic,DOS," "win32, OS/2, Netware (libc and classic) and MorphOS." ) build() { threadcount=$(($(sed -ne '/cpu cores/h;${g;s/[^0-9]*//p}' \ < /proc/cpuinfo)*2)) if [ $threadcount -lt 2 ]; then threadcount=2 elif [ $threadcount -gt 8 ]; then threadcount=8 fi cd $startdir/src/$pkgname-$pkgver make -j $threadcount all make install INSTALL_PREFIX=$startdir/pkg/usr mkdir $startdir/pkg/usr/doc mv $startdir/pkg/usr/share/doc/* $startdir/pkg/usr/doc/ rmdir $startdir/pkg/usr/share/doc; rmdir $startdir/pkg/usr/share cd $startdir/pkg/usr/bin ln -sf ../lib/fpc/$pkgver/ppc386 ppc386 mkdir $startdir/pkg/etc mv /etc/fpc.cfg $startdir/pkg/etc/ }