blob: e05dda666aab076869676a6cd5dc1816aef92bb4 (
plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Maintainer: <kaptoxic _at_ yahoo _dot_ com >
# Contributor: Daniel Dias <dias AT archlinux DOT info>
# Contributor: Aaron Fischer <mail@aaron-fischer.net>
# Contributor: Slash <yahoo.com: demodevil5>
# Contributor: Jesse Jaara <gmail.com: jesse.jaara>
# To speed up package creation. If you are planning to distribute
# This on some custon repo, you might want to use the defaut slow but
# much better xz compression.
PKGEXT=.pkg.tar
pkgname=hon
pkgver=3.7.8.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=('alsa-lib' 'gconf' 'gtk2' 'nss' 'libxss' 'libjpeg-turbo')
makedepends=('unzip')
options=(!strip)
install=hon.install
source=('hon.desktop' 'license' "http://dl.heroesofnewerth.com/HoNClient-${pkgver}-${pkgrel}.sh")
noextract=("HoNClient-${pkgver}.sh")
md5sums=('25fb5ab8c49be0f1269c79520ccee789'
'dd2c8cd0f5bcafa25cfb583a92e21aec'
'0e802185477b5158877195a3aff8669e')
package() {
## Thx to messo8080 for reminding us about the /tmp dir,
## on new installs this dir is in ram by default.
if `pwd | grep -q "/tmp"`; then
echo \
"You are trying to build this pkg in /tmp dir.
This is not so good idea as /tmp dir is in ram
by default. If you know that you have lots of
ram (>4G) and swap and want to continue building in
the current directory write yes and press ENTER.
Otherwise write no and press ENTER.
Continue?"
read answer
if [ "${answer}" == "no" ]; then
false
fi
fi
mv HoNClient-${pkgver}-${pkgrel}.sh HoNClient-${pkgver}.sh
# Create Destination Directory
mkdir -p "${pkgdir}/opt/"
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
# Extract Files
sh -c "unzip \"${srcdir}/HoNClient-${pkgver}.sh\" \"data/*\" -d \"${pkgdir}/opt/\"; true"
mv "${pkgdir}"/opt/{data,hon}
# Install License
cp "${srcdir}/license" "${pkgdir}/usr/share/licenses/${pkgname}/"
# Install Desktop Shortcut
install -D -m 0644 "${srcdir}/hon.desktop" \
"${pkgdir}/usr/share/applications/hon.desktop"
# Install Client Launcher
mkdir -p "${pkgdir}/usr/bin"
ln -s /opt/hon/hon.sh "${pkgdir}/usr/bin/hon"
# Set Ownership to root:games
chown -R root:games "${pkgdir}/opt/hon"
chmod -R g+w "${pkgdir}/opt/hon"
}
|