public
Created

hon pkgbuild

  • Download Gist
gistfile1.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
## PKGBUILD [plain_text]
# Contributor: Slash <demodevil5 [at] yahoo [dot] com>
 
pkgname=hon
pkgver=2.1.0.1
pkgrel=1
pkgdesc="Heroes of Newerth is a Real Time Strategy game heavily influcenced by DotA"
arch=('i686' 'x86_64')
url="http://www.heroesofnewerth.com/"
license=('custom:HoN')
depends=('libgl' 'libxml2' 'mesa')
makedepends=('unzip')
options=(!strip)
install='hon.install'
source=('hon.desktop' 'hon.launcher' \
"http://dl.heroesofnewerth.com/HoNClient-${pkgver}.sh")
md5sums=('d3fa56f17b5eb21d4da01e8d628fbc97'
'4e104d5954ec711c0b89e9f968917758'
'6774cfb4fbf0532266bb7ac07a3e55ea')
 
build() {
# Extract Files
sh -c "unzip $srcdir/HoNClient-${pkgver}.sh; true"
 
}
package() {
# Create Destination Directory
install -d $pkgdir/opt/hon/
 
# Install Game & Data Files
cp -r $srcdir/data/* \
$pkgdir/opt/hon/
 
# Install License (HoN TOS)
install -D -m 0644 $srcdir/data/tos.txt \
$pkgdir/usr/share/licenses/$pkgname/hon_tos.txt
 
# Install License (S2 TOS)
install -D -m 0644 $srcdir/meta/license.txt \
$pkgdir/usr/share/licenses/$pkgname/hon_license.txt
 
# Install Desktop Shortcut
install -D -m 0644 $srcdir/hon.desktop \
$pkgdir/usr/share/applications/hon.desktop
 
# Install Client Launcher
install -D -m 0755 $srcdir/hon.launcher \
$pkgdir/usr/bin/hon
 
# Set Ownership to root:games
chown -R root:games $pkgdir/opt/hon
chmod -R g+w $pkgdir/opt/hon
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.