summaryrefslogtreecommitdiff
path: root/community/fpc/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-01-15 00:06:27 -0800
committerroot <root@rshg054.dnsready.net>2013-01-15 00:06:27 -0800
commit733e4f771063834ef4d8f31af1dcac95d55e3c3e (patch)
tree578fc3d3adaff80532f1f0a5a0eced16ebf08e8a /community/fpc/PKGBUILD
parenta69d072f5cde4b5a6bac62e6022a69d337925e45 (diff)
Tue Jan 15 00:06:26 PST 2013
Diffstat (limited to 'community/fpc/PKGBUILD')
-rw-r--r--community/fpc/PKGBUILD28
1 files changed, 21 insertions, 7 deletions
diff --git a/community/fpc/PKGBUILD b/community/fpc/PKGBUILD
index 554fedb39..33e3ceb53 100644
--- a/community/fpc/PKGBUILD
+++ b/community/fpc/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 70842 2012-05-17 18:20:47Z idevolder $
+# $Id: PKGBUILD 82304 2013-01-14 17:20:39Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Valeriy Lyasotskiy <onestep@ukr.net>
# Contributor: Jan Willemson <janwil@hot.ee>
@@ -9,24 +9,38 @@
pkgname=fpc
pkgver=2.6.0
-pkgrel=2
+_gdbver=7.5.1
+pkgrel=4
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)
+depends=(ncurses zlib expat)
makedepends=(fpc)
options=(zipman)
-source=(ftp://ftp.freepascal.org/pub/fpc/dist/$pkgver/source/fpcbuild-$pkgver.tar.gz)
-md5sums=('17375e665a4e1311f85812fe2754f609')
+source=(ftp://ftp.freepascal.org/pub/fpc/dist/$pkgver/source/fpcbuild-$pkgver.tar.gz
+ http://ftp.gnu.org/gnu/gdb/gdb-${_gdbver}.tar.bz2
+ fpc-gdb.patch)
+md5sums=('17375e665a4e1311f85812fe2754f609'
+ '3f48f468b24447cf24820054ff6e85b1'
+ '1e45ece6b5d4ee60b860e75926b4122d')
build() {
+ cd ${srcdir}/gdb-${_gdbver}
+ ./configure --prefix=/usr --disable-nls --without-python --disable-werror --disable-tui
+ make
+ make -C gdb libgdb.a
+ cp libdecnumber/libdecnumber.a gdb/
+
cd ${srcdir}/fpcbuild-$pkgver
+ patch -p1 <$srcdir/fpc-gdb.patch
+ export GDBLIBDIR=${srcdir}/gdb-${_gdbver}/gdb
+ export LIBGDBFILE=$GDBLIBDIR/libgdb.a
pushd fpcsrc/compiler
fpcmake -Tall
popd
- make NOGDB=1 build
+ make build
}
package() {
@@ -34,7 +48,7 @@ package() {
export HOME=$srcdir
- make -j1 NOGDB=1 PREFIX=${pkgdir}/usr install
+ make -j1 PREFIX=${pkgdir}/usr install
export PATH=$pkgdir/usr/bin:$PATH