Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

mkgmap-r2544-1

By: Ichimonji10 on Apr 6th, 2013  |  syntax: Bash  |  size: 1.10 KB  |  views: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
  2. # Contributor: Arnaud Durand-Favreau <biginoz at FREE point FR>
  3.  
  4. pkgname=mkgmap
  5. pkgver=r2544
  6. pkgrel=1
  7. pkgdesc="Utility for making maps for Garmin GPS devices"
  8. arch=('any')
  9. url="http://www.mkgmap.org.uk/index.html"
  10. license=('GPL')
  11. depends=('java-runtime')
  12. source=(http://www.mkgmap.org.uk/snapshots/$pkgname-$pkgver.tar.gz)
  13. sha256sums=('21be597058bfd6676f55a7a1118d1d67117356161124d206697afd43eada48ae')
  14.    
  15. package() {
  16.   cd ${srcdir}/$pkgname-$pkgver
  17.  
  18.   # Install mkgmap.jar, it's dependencies, and it's man page.
  19.   install -D -m644 mkgmap.jar ${pkgdir}/usr/share/java/$pkgname/$pkgname.jar
  20.   cp -r lib/ ${pkgdir}/usr/share/java/${pkgname}/
  21.   install -D -m644 doc/$pkgname.1 ${pkgdir}/usr/share/man/man1/$pkgname.1
  22.  
  23.   # Create an executable file.
  24.   install -d ${pkgdir}/usr/bin
  25.   echo "#!/bin/sh" > ${pkgdir}/usr/bin/$pkgname
  26.   echo CLASSPATH="/usr/share/java/${pkgname}/${pkgname}.jar" >> ${pkgdir}/usr/bin/$pkgname
  27.   echo java -jar \"\${CLASSPATH}\" \"\$@\" >> ${pkgdir}/usr/bin/$pkgname
  28.   chmod 755 ${pkgdir}/usr/bin/$pkgname
  29. }