updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / lcc / PKGBUILD
blob3db30f971dc3db62b640fc8d3386ceabf10fdd37
1 # Maintainer: Brendan Long <korin43@gmail.com>
3 pkgname=lcc
4 pkgver=1.3
5 pkgrel=2
6 pkgdesc="C to LC3 compiler from McGraw Hill"
7 arch=('i686' 'x86_64')
8 url="http://highered.mcgraw-hill.com/sites/0072467509/student_view0/c_to_lc-3_compiler.html"
9 license=('LGPL')
10 depends=('unzip' 'lc3tools')
11 makedepends=()
12 replaces=()
13 conflicts=()
14 source=("http://highered.mcgraw-hill.com/sites/dl/free/0072467509/104652/lcc.zip")
15 md5sums=('e66851a28023e28e5d55d3fe24e26161')
17 build(){
18         cd $srcdir/lcc-$pkgver
19         ./configure --installdir /usr/lib/lc3tools
20         make
21         
22         install -m644 -d $srcdir/lcc-$pkgver/include ${pkgdir}/usr/lib/lc3tools/include
23         install -m644 -d $srcdir/lcc-$pkgver/lc3lib ${pkgdir}/usr/lib/lc3tools/lc3lib
24         install -m755 -D $srcdir/lcc-$pkgver/lc3pp/lc3pp ${pkgdir}/usr/lib/lc3tools/lc3pp
25         install -m755 -D $srcdir/lcc-$pkgver/cpp/cpp ${pkgdir}/usr/lib/lc3tools/cpp
26         install -m755 -D $srcdir/lcc-$pkgver/etc/lcc ${pkgdir}/usr/lib/lc3tools/lcc
27         install -m755 -D $srcdir/lcc-$pkgver/etc/lcc ${pkgdir}/usr/bin/lcc
28         install -m755 -D $srcdir/lcc-$pkgver/src/rcc ${pkgdir}/usr/lib/lc3tools/rcc
29         ln -s /usr/bin/lc3as ${pkgdir}/usr/lib/lc3tools