diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/fpc/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/fpc/PKGBUILD')
-rw-r--r-- | community/fpc/PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/community/fpc/PKGBUILD b/community/fpc/PKGBUILD new file mode 100644 index 000000000..9b7d02152 --- /dev/null +++ b/community/fpc/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 32549 2010-11-14 16:57:28Z spupykin $ +# 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> +# Original PKGBUILD: Andre Naumann <anaumann@SPARCed.org> +# See http://bbs.archlinux.org/viewtopic.php?t=9318&highlight=fpc + +pkgname=fpc +pkgver=2.4.2 +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/" +license=('GPL' 'LGPL' 'custom') +backup=("etc/fpc.cfg") +depends=(ncurses) +makedepends=(fpc) +options=(zipman) +source=(ftp://ftp.freepascal.org/pub/fpc/dist/$pkgver/source/fpcbuild-$pkgver.tar.gz) +md5sums=('35ff506cca77b999097ffed61705be95') + +build() { + cd ${srcdir}/fpcbuild-$pkgver + make NOGDB=1 build + make -j1 NOGDB=1 PREFIX=${pkgdir}/usr install + + # install package license + install -m 755 -d ${pkgdir}/usr/share/licenses/${pkgname} + install -m 644 fpcsrc/rtl/COPYING.FPC ${pkgdir}/usr/share/licenses/${pkgname}/ + + # 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 + + mv $pkgdir/usr/man $pkgdir/usr/share/ +} |