diff options
Diffstat (limited to 'community/fpc/PKGBUILD')
-rw-r--r-- | community/fpc/PKGBUILD | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/community/fpc/PKGBUILD b/community/fpc/PKGBUILD index 44cd7b43e..2c9b5a6da 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' 'mips64el') 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 |