updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gcc4ti / PKGBUILD
blob96751529a22aa9c9950775d808786648186ef245
1 # Maintainer: PyroPeter <com.googlemail@abi1789>
3 pkgname=gcc4ti
4 pkgver=0.96_beta_10
5 pkgrel=1
6 pkgdesc="SDK for TI calculators (fork of tigcc)"
7 arch=('i686' 'x86_64')
8 url="http://trac.godzil.net/gcc4ti/"
9 license=('GPL')
10 depends=('sh')
11 makedepends=('subversion' 'make' 'gcc>=2.95' 'patch' 'bison' 'flex')
12 optdepends=('qt3: For gcc4tidoc')
13 install=gcc4ti.install
14 options=('!strip')
15 source=('http://lionel.debroux.free.fr/pub/.GCC4TI/0.96Beta10/gcc4ti_src.tar.bz2'
16         'ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-4.1.2/gcc-core-4.1.2.tar.bz2'
17         'ftp://ftp.fu-berlin.de/unix/gnu/binutils/binutils-2.16.1.tar.bz2'
18         'tigcc.a::http://www.mirari.fr/sncx'
19         'sprites.h'
20         'stdlib.h'
21         'envreg')
22 noextract=('gcc-core-4.1.2.tar.bz2' 'binutils-2.16.1.tar.bz2')
23 md5sums=('bbea725f8437147c946041fd9f956282' '2af3fb599635219171c6ae1f3034888a' '6a9d529efb285071dad10e1f3d2b2967' 'b928789e2ea53ea8e7c8a48247582a0f' 'a1cfc1ddfe4aa0af9c629197f609ea5b' '9ee7d4574f33847e8f205520ca58ec1b' '1b2e40cae1b909ef07dc4f0d8c0b5805')
25 build() {
26   cd "$srcdir"
27   
28   mkdir -p "$pkgdir/opt"
29   export PREFIX_GCC4TI="$pkgdir/opt/gcc4ti"
30   export PATH="$PATH:$PREFIX_GCC4TI/bin"
31   export CFLAGS='-Os -s'
32   cd scripts
33   ./Install_All
34   
35   # workaround for bad install script
36   cd "$pkgdir/opt/gcc4ti"
37   sed -i -- 's!assistant -!/opt/qt/bin/assistant -!' bin/gcc4tidoc
38   rm doc/tigcclib
39   ln -fs html doc/tigcclib
40   ln -fs os.h include/asm/OS.h
41   install -m755 "$srcdir/envreg" bin/envreg
42   
43   # fixing sprite bug:
44   # http://trac.godzil.net/gcc4ti/wiki/SprtRoutinesFix
45   install -m644 "$srcdir/tigcc.a" lib/
46   install -m644 "$srcdir/sprites.h" include/c/
47   install -m644 "$srcdir/stdlib.h" include/c/