summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dfaee3ca1124cbb6108b0a7b46cd6865092a6bf1 (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
# Submitter: Nuno Araujo <nuno.araujo@russo79.com>
# Maintainer: Eray Aydın <eray@labkod.com>
pkgname=mutantfactions
pkgver=0.993
pkgrel=3
pkgdesc="Free multiplayer action game"
arch=('i686' 'x86_64')
url="http://mutantfactions.net"
license=('custom')
depends=('unionfs-fuse' 'hicolor-icon-theme' 'xdg-utils')
if [[ "$CARCH" == "x86_64" ]]; then
  depends+=('lib32-glu' 'lib32-libxrandr' 'lib32-freealut', 'lib32-libxxf86vm', 'lib32-libxinerama', 'gcc-multilib')
else
  depends+=('glu' 'libxrandr' 'freealut' 'gcc')
fi
optdepends=()
conflicts=('subvein')
replaces=('subvein')
install=mutantfactions.install
source=("http://mutantfactions.net/downloads/MutantFactions0993.tar.gz"
        "mutantfactions"
        "mutantfactions-server"
        "mutantfactions.service"
        "etc_confd_mutantfactions"
        "mutantfactions-16x16.png"
        "mutantfactions-24x24.png"
        "mutantfactions-32x32.png"
        "mutantfactions-48x48.png"
        "mutantfactions-64x64.png"
        "mutantfactions.desktop")
md5sums=('f5f7a01990bdcc77d3f0327a738e5b2c'
         '415352df252c48df74e738735eed903f'
         '59164a2e1a8bb8005abcb1529ccd2e5d'
         '90647a6ec51f37085ab3a43842925c2b'
         'b01cfca81170bce397091f05febd8e5e'
         '146240abe45b133a5c5ea2c0fdd17b7d'
         'cac9d34ccd69e207d14e55aa28a0d280'
         '64058b1043f76a92e8da3cfad4345f66'
         '1a806f08c1d728528bfcb546ba390dba'
         '967ba3a3dbf9db02037275ea36b64b19'
         '8d30e75e332d85c990de235a1f7827fa')

package() {
  mkdir -p $pkgdir/opt/mutantfactions
  cp -r $srcdir/MutantFactions/. $pkgdir/opt/mutantfactions
  rm -rf $pkgdir/opt/mutantfactions/lib
  chmod -R g+w $pkgdir/opt/mutantfactions/data

  install -m 755 -D $srcdir/mutantfactions $pkgdir/usr/bin/mutantfactions
  install -m 755 -D $srcdir/mutantfactions-server $pkgdir/usr/bin/mutantfactions-server
  install -m 644 -D $srcdir/mutantfactions.service $pkgdir/usr/lib/systemd/system/mutantfactions.service
  install -m 644 -D $srcdir/etc_confd_mutantfactions $pkgdir/etc/conf.d/mutantfactions
  install -m 644 -D $srcdir/mutantfactions-16x16.png $pkgdir/usr/share/icons/hicolor/16x16/apps/mutantfactions.png
  install -m 644 -D $srcdir/mutantfactions-24x24.png $pkgdir/usr/share/icons/hicolor/24x24/apps/mutantfactions.png
  install -m 644 -D $srcdir/mutantfactions-32x32.png $pkgdir/usr/share/icons/hicolor/32x32/apps/mutantfactions.png
  install -m 644 -D $srcdir/mutantfactions-48x48.png $pkgdir/usr/share/icons/hicolor/48x48/apps/mutantfactions.png
  install -m 644 -D $srcdir/mutantfactions-64x64.png $pkgdir/usr/share/icons/hicolor/64x64/apps/mutantfactions.png
  install -m 644 -D $srcdir/mutantfactions.desktop $pkgdir/usr/share/applications/mutantfactions.desktop
  install -m 755 -d $pkgdir/var/lib/mutantfactions
}

# vim:set ts=2 sw=2 et: