SHARE
TWEET

Fixed PKGBUILD for lc3tools

a guest Jan 28th, 2015 165 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Adam Eberlin <ae at intellitech dot org>
  2.  
  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')
  18.  
  19. build()
  20. {
  21.         cd ${srcdir}/lc3tools
  22.  
  23.         msg "Starting make..."
  24.  
  25.         ./configure --installdir /usr/lib/lc3tools --prefix=/usr || return 1
  26.         make || return 1
  27.  
  28.         msg "Fixing a few path issues..."
  29.  
  30.         cp ${srcdir}/lc3tools/lc3sim-tk ${srcdir}/lc3tools/lc3sim-tk.bak
  31.  
  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
  33. }
  34.  
  35. package()
  36. {
  37.         msg "Building package..."
  38.  
  39.         install -m644 -D ${srcdir}/lc3tools/CHANGE_LOG ${pkgdir}/usr/share/lc3tools/CHANGE_LOG
  40.         install -m644 -D ${srcdir}/lc3tools/COPYING ${pkgdir}/usr/share/licenses/lc3tools/COPYING
  41.         install -m644 -D ${srcdir}/lc3tools/NO_WARRANTY ${pkgdir}/usr/share/licenses/lc3tools/NO_WARRANTY
  42.         install -m644 -D ${srcdir}/lc3tools/README ${pkgdir}/usr/share/lc3tools/README
  43.         install -m755 -D ${srcdir}/lc3tools/lc3as ${pkgdir}/usr/bin/lc3as
  44.         install -m755 -D ${srcdir}/lc3tools/lc3convert ${pkgdir}/usr/bin/lc3convert
  45.         install -m755 -D ${srcdir}/lc3tools/lc3sim ${pkgdir}/usr/bin/lc3sim
  46.         install -m755 -D ${srcdir}/lc3tools/lc3sim-tk ${pkgdir}/usr/bin/lc3sim-tk
  47.         mkdir -p ${pkgdir}/usr/lib/lc3tools
  48.         install -m755 -D ${srcdir}/lc3tools/lc3os.obj ${pkgdir}/usr/lib/lc3tools/lc3os.obj
  49.         install -m755 -D ${srcdir}/lc3tools/lc3os.sym ${pkgdir}/usr/lib/lc3tools/lc3os.sym
  50.         cd ${pkgdir}/usr/lib/lc3tools
  51.         ln -s ../../bin/lc3sim ./lc3sim
  52. }
RAW Paste Data
Top