summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89c833ee3a1f7f2e0bcaad39b4a0b1113e61d4ea (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
# Contributor: Ivan Puntiy <ivan.puntiy-at-gmail>
pkgname=unix-runescape-client
pkgver=4.3.8
pkgrel=1
pkgdesc="RuneScape client for Linux and Unix (RSU-Client,Legacy)"
arch=(any)
url="https://github.com/rsu-client/rsu-client"
license=(GPL2)
depends=(
  'java-runtime' 'perl' 'perl-wx' 'wget' 'libxtst' 'xdg-utils'
  'perl-config-inifiles' 'perl-io-stringy' 'perl-archive-extract'
)
optdepends=(
  'wine: for "compatibility mode" fix'
  'alsa-oss: for "force alsa" fix'
  'pulseaudio: for "force pulseaudio" fix'
  'p7zip: to extract launcher from .msi'
)
conflicts=('runescape-client-bin')
install=$pkgname.install
source=("$pkgname-$pkgver.tar.gz::https://github.com/rsu-client/rsu-client/archive/v$pkgver.tar.gz")
md5sums=('d42e3f901100f5247d37b2cf9b69f23f')

package() {
  local _instdir="$pkgdir"/opt/runescape
  cd "$srcdir/rsu-client-$pkgver/runescape"

  mkdir -p "$_instdir" "$pkgdir"/usr/{bin,share/applications}

  # copy the stuff
  cp -t "$_instdir" *.txt runescape updater rsu-settings AUTHORS
  cp -Rt "$_instdir" share rsu
  cp -Rt "$pkgdir"/usr/bin templates/packaging/usr/games/*
  cp -Rt "$pkgdir"/usr templates/packaging/usr/share

  # these libraries are old, and they are not needed anymore with current cairo from [extra]
  rm -rf "$_instdir"/rsu/3rdParty/linux/cairo-nogl
}