summaryrefslogtreecommitdiff
path: root/community/fpc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/fpc/PKGBUILD')
-rw-r--r--community/fpc/PKGBUILD21
1 files changed, 17 insertions, 4 deletions
diff --git a/community/fpc/PKGBUILD b/community/fpc/PKGBUILD
index e3d154b45..fa5ffb86e 100644
--- a/community/fpc/PKGBUILD
+++ b/community/fpc/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 48312 2011-05-31 09:49:30Z spupykin $
+# $Id: PKGBUILD 53775 2011-08-08 08:05:51Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Valeriy Lyasotskiy <onestep@ukr.net>
# Contributor: Jan Willemson <janwil@hot.ee>
@@ -8,7 +8,7 @@
pkgname=fpc
pkgver=2.4.4
-pkgrel=1
+pkgrel=3
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' 'mips64el')
url="http://www.freepascal.org/"
@@ -17,18 +17,31 @@ 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=('d069dfd3412bd0d26dcd1b81ac998305')
+source=(ftp://ftp.freepascal.org/pub/fpc/dist/$pkgver/source/fpcbuild-$pkgver.tar.gz
+ Makefile-mk382.diff)
+md5sums=('d069dfd3412bd0d26dcd1b81ac998305'
+ 'a2242d261b055d08fa4d70e88ca1d1a7')
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() {
cd ${srcdir}/fpcbuild-$pkgver
+
+ export HOME=$srcdir
+
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
+
# install package license
install -m 755 -d ${pkgdir}/usr/share/licenses/${pkgname}
install -m 644 fpcsrc/rtl/COPYING.FPC ${pkgdir}/usr/share/licenses/${pkgname}/