updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / lc3tools / PKGBUILD
blobbd497a2fd44a02f5b7d933e7c4c3384a965edd48
1 # Maintainer: Adam Eberlin <ae at intellitech dot org>
3 pkgname=lc3tools
4 pkgver=12
5 pkgrel=2
6 pkgdesc="Unix LC-3 Simulator from McGraw-Hill Higher Education"
7 arch=('i686' 'x86_64')
8 url="http://highered.mcgraw-hill.com/sites/0072467509/student_view0/"
9 license=('LGPL')
10 depends=('unzip' 'tk')
11 makedepends=()
12 provides=("lc3sim=$pkgver")
13 replaces=()
14 conflicts=()
15 options=('!libtool')
16 source=("http://highered.mcgraw-hill.com/sites/dl/free/0072467509/104652/lc3tools_v$pkgver.zip")
17 md5sums=('40bfed95f05b50d5378912f7bbc03164')
19 build()
21         cd ${srcdir}/lc3tools
23         msg "Starting make..."
25         ./configure --installdir /usr/lib/lc3tools --prefix=/usr || return 1
26         make || 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