1 # Maintainer: PyroPeter <com.googlemail@abi1789>
6 pkgdesc="SDK for TI calculators (fork of tigcc)"
8 url="http://trac.godzil.net/gcc4ti/"
11 makedepends=('subversion' 'make' 'gcc>=2.95' 'patch' 'bison' 'flex')
12 optdepends=('qt3: For gcc4tidoc')
13 install=gcc4ti.install
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'
22 noextract=('gcc-core-4.1.2.tar.bz2' 'binutils-2.16.1.tar.bz2')
23 md5sums=('bbea725f8437147c946041fd9f956282' '2af3fb599635219171c6ae1f3034888a' '6a9d529efb285071dad10e1f3d2b2967' 'b928789e2ea53ea8e7c8a48247582a0f' 'a1cfc1ddfe4aa0af9c629197f609ea5b' '9ee7d4574f33847e8f205520ca58ec1b' '1b2e40cae1b909ef07dc4f0d8c0b5805')
28 mkdir -p "$pkgdir/opt"
29 export PREFIX_GCC4TI="$pkgdir/opt/gcc4ti"
30 export PATH="$PATH:$PREFIX_GCC4TI/bin"
31 export CFLAGS='-Os -s'
35 # workaround for bad install script
36 cd "$pkgdir/opt/gcc4ti"
37 sed -i -- 's!assistant -!/opt/qt/bin/assistant -!' bin/gcc4tidoc
39 ln -fs html doc/tigcclib
40 ln -fs os.h include/asm/OS.h
41 install -m755 "$srcdir/envreg" bin/envreg
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/