Created
August 2, 2011 10:34
-
-
Save Gonzih/1119988 to your computer and use it in GitHub Desktop.
hon pkgbuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## 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 | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment