Want more features on Pastebin? Sign Up, it's FREE!
Guest

hon 1.0.20-1

By: a guest on Nov 26th, 2010  |  syntax: Python  |  size: 1.38 KB  |  views: 128  |  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. pkgname=hon
  2. pkgver=1.0.20
  3. pkgrel=1
  4. pkgdesc="Heroes of Newerth is a Real Time Strategy game heavily influcenced by DotA"
  5. arch=('i686' 'x86_64')
  6. url="http://www.heroesofnewerth.com/"
  7. license=('custom:HoN')
  8. depends=('libgl' 'libxml2' 'mesa')
  9. makedepends=('unzip')
  10. install='hon.install'
  11. source=('hon.desktop' 'hon.launcher' \
  12. "http://dl.heroesofnewerth.com/HoNClient-${pkgver}.sh")
  13. md5sums=('d3fa56f17b5eb21d4da01e8d628fbc97'
  14.          '4e104d5954ec711c0b89e9f968917758'
  15.          '187c98fcf529e596bae9be530b51870d')
  16.  
  17. build() {
  18.     # Extract Files
  19.     sh -c "unzip $srcdir/HoNClient-${pkgver}.sh; true"
  20.  
  21.     # Create Destination Directory
  22.     install -d $pkgdir/opt/hon/
  23.  
  24.     # Install Game & Data Files
  25.     cp -r $srcdir/data/* \
  26.         $pkgdir/opt/hon/
  27.  
  28.     # Install License (HoN TOS)
  29.     install -D -m 0644 $srcdir/data/tos.txt \
  30.         $pkgdir/usr/share/licenses/$pkgname/hon_tos.txt
  31.  
  32.     # Install License (S2 TOS)
  33.     install -D -m 0644 $srcdir/meta/license.txt \
  34.         $pkgdir/usr/share/licenses/$pkgname/hon_license.txt
  35.  
  36.     # Install Desktop Shortcut
  37.     install -D -m 0644 $srcdir/hon.desktop \
  38.         $pkgdir/usr/share/applications/hon.desktop
  39.  
  40.     # Install Client Launcher
  41.     install -D -m 0755 $srcdir/hon.launcher \
  42.         $pkgdir/usr/bin/hon
  43.  
  44.     # Set Ownership to root:games
  45.     chown -R root:games $pkgdir/opt/hon
  46.     chmod -R g+w $pkgdir/opt/hon
  47. }
clone this paste RAW Paste Data