mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
community/fpc to 3.0.4-2
This commit is contained in:
parent
4cb3f7c9de
commit
a279c1d0b8
1 changed files with 6 additions and 19 deletions
|
@ -1,9 +1,9 @@
|
|||
# $Id$
|
||||
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
||||
# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
|
||||
# Contributor: Valeriy Lyasotskiy <onestep@ukr.net>
|
||||
# Contributor: Jan Willemson <janwil@hot.ee>
|
||||
# Contributor: Hugo Ideler <hugoideler@dse.nl>
|
||||
# Contributor: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
|
||||
# Original PKGBUILD: Andre Naumann <anaumann@SPARCed.org>
|
||||
# See http://bbs.archlinux.org/viewtopic.php?t=9318&highlight=fpc
|
||||
|
||||
|
@ -13,33 +13,21 @@
|
|||
|
||||
pkgname=fpc
|
||||
pkgver=3.0.4
|
||||
_gdbver=7.10
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
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=('x86_64')
|
||||
url="http://www.freepascal.org/"
|
||||
license=('GPL' 'LGPL' 'custom')
|
||||
backup=("etc/fpc.cfg")
|
||||
depends=(ncurses zlib expat)
|
||||
depends=('ncurses' 'zlib' 'expat' 'binutils')
|
||||
makedepends=(fpc)
|
||||
options=(zipman staticlibs)
|
||||
validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3')
|
||||
source=(ftp://ftp.freepascal.org/pub/fpc/dist/$pkgver/source/fpcbuild-$pkgver.tar.gz
|
||||
https://ftp.gnu.org/gnu/gdb/gdb-${_gdbver}.tar.xz{,.sig})
|
||||
sha256sums=('f66514e6f2c2e4e1bccccb4d554c24b77682ed61c87811ae5dd210f421855e76'
|
||||
'7ebdaa44f9786ce0c142da4e36797d2020c55fa091905ac5af1846b5756208a8'
|
||||
'SKIP')
|
||||
source=(ftp://ftp.freepascal.org/pub/fpc/dist/$pkgver/source/fpcbuild-$pkgver.tar.gz)
|
||||
sha256sums=('f66514e6f2c2e4e1bccccb4d554c24b77682ed61c87811ae5dd210f421855e76')
|
||||
|
||||
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
|
||||
export GDBLIBDIR="$srcdir"/gdb-${_gdbver}/gdb
|
||||
export LIBGDBFILE=$GDBLIBDIR/libgdb.a
|
||||
[[ $CARCH == "armv7h" || $CARCH == "armv6h" ]] && EXTRA="OPT=-dFPC_ARMHF"
|
||||
pushd fpcsrc/compiler
|
||||
fpcmake -Tall
|
||||
|
@ -52,13 +40,12 @@ package() {
|
|||
|
||||
export HOME="$srcdir"
|
||||
|
||||
make -j1 PREFIX="$pkgdir"/usr install
|
||||
make -j1 PREFIX="$pkgdir"/usr install NOGDB=1
|
||||
|
||||
export PATH="$pkgdir"/usr/bin:$PATH
|
||||
|
||||
install -Dm0644 fpcsrc/rtl/COPYING.FPC "$pkgdir"/usr/share/licenses/${pkgname}/COPYING.FPC
|
||||
|
||||
[ "$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/
|
||||
[ "$CARCH" = "arm" -o "$CARCH" = "armv6h" -o "$CARCH" = "armv7h" ] && ln -s /usr/lib/fpc/${pkgver}/ppcarm "$pkgdir"/usr/bin/
|
||||
|
||||
|
|
Loading…
Reference in a new issue