Advertisement
Guest User

hon 1.0.20-1

a guest
Nov 26th, 2010
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.38 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement