summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3804e4e970ed3b44670368ee69be068e2eac3da1 (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
# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>
# Contributor: Dmitrij D. Czarkoff <czarkoff@gmail.com>
# Contributor: Swift Geek

# Please note you'll need to download the Linux tar.bz2 in order for this
# PKGBUILD to work, since PA is propietary software.
# https://store.uberent.com/download/pa

pkgname=planetary-annihilation
pkgver=86765
pkgrel=1
pkgdesc="RTS gameplay in a way that's never been seen before."
group=("games")
arch=("x86_64")
url="http://www.uberent.com/pa/"
license=("custom")
depends=("alsa-lib" "gconf" "nss" "gtk2" "libtxc_dxtn" "rtmpdump")
conflicts=("planetary-annihilation-pte")
options=("!libtool" "!strip")
source=(PA_Linux_${pkgver}.tar.bz2::https://manual-download-required
        PA.desktop
        PA.png
        PA.sh)
noextract=(PA_Linux_${pkgver}.tar.bz2)
PKGEXT=".pkg.tar"
md5sums=('3dbad53028e91bd69ef7063178963f77'
         '16b2acc35fe4cd6fa06aff57b4a6fdc4'
         '463f4e99f44ff6ce9c09e383767a6b1d'
         '2f62773702cc5fcee03b160296738b29')

package() {
  # Game itself
  install -d "${pkgdir}/opt/"
  tar xf "${srcdir}/PA_Linux_${pkgver}.tar.bz2" -C "${pkgdir}/opt/"
  find "$pkgdir/opt/PA" -type f -exec chmod -R u+w,go-w {} \;
  chown -R root:root "$pkgdir/opt/PA"

  # License
  install -Dm 644 "${pkgdir}/opt/PA/licenses.txt" "${pkgdir}/usr/share/licenses/$pkgname/licenses.txt"

  # Launcher script
  install -Dm 755 "${srcdir}/PA.sh" "${pkgdir}/usr/bin/PA"

  # DE Launcher icon
  mkdir -p "$pkgdir/opt" "$pkgdir/usr/share/applications" \
    "$pkgdir/usr/share/icons"
  install -m644 "$srcdir/PA.desktop" "$pkgdir/usr/share/applications"
  install -m644 "$srcdir/PA.png" "$pkgdir/usr/share/icons"
}