1 # Maintainer: Brendan Long <korin43@gmail.com>
6 pkgdesc="C to LC3 compiler from McGraw Hill"
8 url="http://highered.mcgraw-hill.com/sites/0072467509/student_view0/c_to_lc-3_compiler.html"
10 depends=('unzip' 'lc3tools')
14 source=("http://highered.mcgraw-hill.com/sites/dl/free/0072467509/104652/lcc.zip")
15 md5sums=('e66851a28023e28e5d55d3fe24e26161')
18 cd $srcdir/lcc-$pkgver
19 ./configure --installdir /usr/lib/lc3tools
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