updated on Tue Jan 17 00:10:10 UTC 2012
[aur-mirror.git] / hpgcc / PKGBUILD
blobc2c88c599c8ab4fc0a1c505dd35c85a62f2503bf
1 # Maintainer: Eric Waller <ewwaller@gmail.com>
2 pkgname=hpgcc
3 pkgver=2.0_sp2
4 pkgrel=2
5 pkgdesc="gcc C Compiler for HP 48,49,50 Calculators"
6 arch=('i686' 'x86_64')
7 url="http://hpcalc.org"
8 license=('GPL')
9 groups=(users)
10 depends=()
11 makedepends=('make' 'gcc')
12 source=(http://www.hpcalc.org/hp49/pc/programming/$pkgname-${pkgver/_/-}-linux.tar.bz2)
13 options=('!strip')
14 md5sums=('4dfe57bffc79eaf966a1c2bed06ea502')
15 install=hpgcc.install
17 build() {
18   cd "$srcdir"
19   pwd
20   rm -rf usr
21   mkdir usr 
22   mkdir usr/local
23   tar xvC usr/local/ -f "$srcdir/$pkgname""_20"/arm-elf-gcc-4.1.1-x86-linux2.tar
24   patch $srcdir/$pkgname"_20"/examples/Makefile < ../examples_Makefile.diff
25   patch $srcdir/$pkgname"_20"/examples/games/Makefile < ../examples_games_Makefile.diff
26   patch $srcdir/$pkgname"_20"/examples/hump/Makefile < ../examples_hump_Makefile.diff
27   patch $srcdir/$pkgname"_20"/examples/decnumber/Chudnovsky/Makefile < ../examples_decnumber_Chudnovsky_Makefile.diff
28   patch $srcdir/$pkgname"_20"/examples/decnumber/matrix/Makefile < ../examples_decnumber_matrix_Makefile.diff
29   patch $srcdir/$pkgname"_20"/examples/decnumber/RSA/Makefile < ../examples_decnumber_RSA_Makefile.diff
30   patch $srcdir/$pkgname"_20"/examples/decnumber/sqrt2/Makefile < ../examples_decnumber_sqrt2_Makefile.diff
31   patch $srcdir/$pkgname"_20"/examples/benchmarks/Makefile < ../examples_benchmarks_Makefile.diff
32   install=hpgcc.install
34 package() {
35   
36   cp -r $srcdir/usr $pkgdir
37   cp -r $srcdir/$pkgname"_20" $pkgdir/usr/local/$pkgname
38   pwd
39   cp ../README_ARCH_LINUX $pkgdir/usr/local/$pkgname
40   rm $pkgdir/usr/local/$pkgname/*tar