1 # Maintainer: Adam Eberlin <ae at intellitech dot org>
6 pkgdesc="Unix LC-3 Simulator from McGraw-Hill Higher Education"
8 url="http://highered.mcgraw-hill.com/sites/0072467509/student_view0/"
10 depends=('unzip' 'tk')
12 provides=("lc3sim=$pkgver")
16 source=("http://highered.mcgraw-hill.com/sites/dl/free/0072467509/104652/lc3tools_v$pkgver.zip")
17 md5sums=('40bfed95f05b50d5378912f7bbc03164')
23 msg "Starting make..."
25 ./configure --installdir /usr/lib/lc3tools --prefix=/usr || return 1
28 msg "Fixing a few path issues..."
30 cp ${srcdir}/lc3tools/lc3sim-tk ${srcdir}/lc3tools/lc3sim-tk.bak
32 sed "s;`echo ${srcdir}/lc3tools/lc3sim | sed 's/\//\\//g'`;`echo /usr/bin/lc3sim | sed 's/\//\\//g'`;g" ${srcdir}/lc3tools/lc3sim-tk.bak > ${srcdir}/lc3tools/lc3sim-tk
34 msg "Building package..."
36 install -m644 -D ${srcdir}/lc3tools/CHANGE_LOG ${pkgdir}/usr/share/lc3tools/CHANGE_LOG
37 install -m644 -D ${srcdir}/lc3tools/COPYING ${pkgdir}/usr/share/licenses/lc3tools/COPYING
38 install -m644 -D ${srcdir}/lc3tools/NO_WARRANTY ${pkgdir}/usr/share/licenses/lc3tools/NO_WARRANTY
39 install -m644 -D ${srcdir}/lc3tools/README ${pkgdir}/usr/share/lc3tools/README
40 install -m755 -D ${srcdir}/lc3tools/lc3as ${pkgdir}/usr/bin/lc3as
41 install -m755 -D ${srcdir}/lc3tools/lc3convert ${pkgdir}/usr/bin/lc3convert
42 install -m755 -D ${srcdir}/lc3tools/lc3sim ${pkgdir}/usr/bin/lc3sim
43 install -m755 -D ${srcdir}/lc3tools/lc3sim-tk ${pkgdir}/usr/bin/lc3sim-tk
44 mkdir -p ${pkgdir}/usr/lib/lc3tools
45 install -m755 -D ${srcdir}/lc3tools/lc3os.obj ${pkgdir}/usr/lib/lc3tools/lc3os.obj
46 install -m755 -D ${srcdir}/lc3tools/lc3os.sym ${pkgdir}/usr/lib/lc3tools/lc3os.sym
47 cd ${pkgdir}/usr/lib/lc3tools
48 ln -s ../../bin/lc3sim ./lc3sim