mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
41 lines
1.6 KiB
Bash
41 lines
1.6 KiB
Bash
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
|
|
# 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.2.5
|
|
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.chg.ru/pub/lang/pascal/fpc/dist/source-$pkgver/fpcbuild-$pkgver.tar.gz)
|
|
source=(ftp://ftp.chg.ru/pub/lang/pascal/fpc/snapshot/v22/source/fpcbuild.zip)
|
|
|
|
build() {
|
|
cd ${srcdir}/fpcbuild
|
|
make NOGDB=1 build || return 1
|
|
make NOGDB=1 PREFIX=${pkgdir}/usr install || return 1
|
|
|
|
# install package license
|
|
install -m 755 -d ${pkgdir}/usr/share/licenses/${pkgname}
|
|
install -m 644 fpcsrc/rtl/COPYING.FPC ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
|
|
|
|
# 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 || return 1
|
|
|
|
mv $pkgdir/usr/man $pkgdir/usr/share/
|
|
}
|