diff options
-rw-r--r-- | .SRCINFO | 36 | ||||
-rw-r--r-- | PKGBUILD | 67 | ||||
-rw-r--r-- | runescape-launcher.install | 13 | ||||
-rw-r--r-- | runescape.16.png | bin | 0 -> 1154 bytes | |||
-rw-r--r-- | runescape.24.png | bin | 0 -> 1731 bytes | |||
-rw-r--r-- | runescape.256.png | bin | 0 -> 13777 bytes | |||
-rw-r--r-- | runescape.32.png | bin | 0 -> 2527 bytes | |||
-rw-r--r-- | runescape.48.png | bin | 0 -> 4433 bytes | |||
-rw-r--r-- | runescape.gpg.key | 18 | ||||
-rw-r--r-- | wrapper.sh | 5 |
10 files changed, 94 insertions, 45 deletions
@@ -1,23 +1,35 @@ # Generated by mksrcinfo v8 -# Fri Feb 19 14:29:23 UTC 2016 +# Fri Feb 19 16:26:21 UTC 2016 pkgbase = runescape-launcher - pkgdesc = RuneScape Game Client + pkgdesc = RuneScape MMORPG – NXT client core pkgver = 2.0.6 - pkgrel = 2 - url = http://www.runescape.com/ - install = runescape-launcher.install + pkgrel = 5 + url = https://www.runescape.com/ arch = x86_64 - license = unknown - depends = glibc + license = custom + depends = gcc-libs + depends = glew1.10 depends = libcurl-compat + depends = libpng12 depends = libvorbis depends = sdl2 depends = webkitgtk2 - depends = libpng12 - depends = glew1.10 - depends = desktop-file-utils - source = http://content.runescape.com/a=13/downloads/ubuntu/pool/non-free/r/runescape-launcher/runescape-launcher_2.0.6_amd64.deb - sha256sums = b59ef54de67abd362b6f32ae3a32a170470c51d2912780b6ae76fb0982dbacf0 + conflicts = runescape-launcher-nxt + replaces = runescape-launcher-nxt + source = wrapper.sh + source = runescape.16.png + source = runescape.24.png + source = runescape.32.png + source = runescape.48.png + source = runescape.256.png + sha256sums = a69a588d96cba03b9fcf13a7230a1a8e4f0591db5c241574924a8596c7cd615b + sha256sums = aa9da8d88067696bf60d79e9d429b1fa6ffbfc533788163c5d2950693854d8bd + sha256sums = c92824f99f8c8a816d276bf5112c714956557b8b327fbfa5889e4c72496e5f23 + sha256sums = 2631c9237f40d9612e4da53c9f066ca48213069d04f643f3b51897d8e369e49e + sha256sums = 592ab440e04ed28a4684b94dea1262d7353291512e62180e80585ebaf5981bf3 + sha256sums = 35ace263a49a53128290d14a8ad7038533ca8a5da83efa110c5998065b35d738 + source_x86_64 = https://content.runescape.com/a=946/downloads/ubuntu/pool/non-free/r/runescape-launcher/runescape-launcher_2.0.6_amd64.deb + sha256sums_x86_64 = b59ef54de67abd362b6f32ae3a32a170470c51d2912780b6ae76fb0982dbacf0 pkgname = runescape-launcher @@ -1,30 +1,57 @@ +# Upstream: RuneScape Linux <noreply@jagex.com> # Maintainer: Ivan Puntiy <ivan.puntiy-at-gmail> +# Contributor: Mantas Mikulėnas <grawity@gmail.com> pkgname=runescape-launcher pkgver=2.0.6 -pkgrel=2 -pkgdesc="RuneScape Game Client" +pkgrel=5 +pkgdesc="RuneScape MMORPG – NXT client core" arch=(x86_64) -url="http://www.runescape.com/" -license=('unknown') +license=(custom) +url="https://www.runescape.com/" depends=( - glibc libcurl-compat libvorbis sdl2 webkitgtk2 - libpng12 glew1.10 - desktop-file-utils + gcc-libs + glew1.10 + libcurl-compat + libpng12 + libvorbis + sdl2 + webkitgtk2 ) -install=$pkgname.install -source=("http://content.runescape.com/a=13/downloads/ubuntu/pool/non-free/r/$pkgname/${pkgname}_${pkgver}_amd64.deb") -sha256sums=('b59ef54de67abd362b6f32ae3a32a170470c51d2912780b6ae76fb0982dbacf0') +conflicts=(runescape-launcher-nxt) +replaces=(runescape-launcher-nxt) +source=("wrapper.sh" + "runescape.16.png" + "runescape.24.png" + "runescape.32.png" + "runescape.48.png" + "runescape.256.png") +source_x86_64=("https://content.runescape.com/a=946/downloads/ubuntu/pool/non-free/r/runescape-launcher/runescape-launcher_${pkgver}_amd64.deb") +sha256sums=('a69a588d96cba03b9fcf13a7230a1a8e4f0591db5c241574924a8596c7cd615b' + 'aa9da8d88067696bf60d79e9d429b1fa6ffbfc533788163c5d2950693854d8bd' + 'c92824f99f8c8a816d276bf5112c714956557b8b327fbfa5889e4c72496e5f23' + '2631c9237f40d9612e4da53c9f066ca48213069d04f643f3b51897d8e369e49e' + '592ab440e04ed28a4684b94dea1262d7353291512e62180e80585ebaf5981bf3' + '35ace263a49a53128290d14a8ad7038533ca8a5da83efa110c5998065b35d738') +sha256sums_x86_64=('b59ef54de67abd362b6f32ae3a32a170470c51d2912780b6ae76fb0982dbacf0') -package() { - cd "$pkgdir" - bsdtar -xf "$srcdir/data.tar.xz" - - # remove /usr/share/games - mv usr/share/games/$pkgname usr/share/ - rmdir usr/share/games - sed -i -e 's:/usr/share/games:/usr/share:g' usr/bin/$pkgname usr/share/applications/$pkgname.desktop +prepare() { + bsdtar xf control.tar.gz + bsdtar xf data.tar.xz +} - # libcurl-compat - sed -i -e 's:\(/usr/share/runescape-launcher/runescape \):LD_PRELOAD=libcurl.so.3 \1:' usr/bin/$pkgname +package() { + cp -a usr "$pkgdir" + mv "$pkgdir"/usr/bin/runescape-launcher{,.real} + install -Dm0644 "$pkgdir"/usr/share/games/runescape-launcher/runescape.png \ + "$pkgdir"/usr/share/icons/hicolor/64x64/apps/runescape.png + for size in 16 24 32 48 256; do + install -Dm0644 runescape.$size.png \ + "$pkgdir"/usr/share/icons/hicolor/${size}x${size}/apps/runescape.png + done + sed -i 's/^Icon=.*/Icon=runescape/' "$pkgdir"/usr/share/applications/runescape-launcher.desktop + install -Dm0755 wrapper.sh "$pkgdir"/usr/bin/runescape-launcher + install -Dm0644 copyright "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } + +# vim: ft=sh:ts=4:sw=4:et:nowrap diff --git a/runescape-launcher.install b/runescape-launcher.install deleted file mode 100644 index bb10b7de03f0..000000000000 --- a/runescape-launcher.install +++ /dev/null @@ -1,13 +0,0 @@ -post_install() { - update-desktop-database -q -} - -post_upgrade() { - post_install "$1" -} - -post_remove() { - update-desktop-database -q -} - -# vim:set ts=2 sw=2 et: diff --git a/runescape.16.png b/runescape.16.png Binary files differnew file mode 100644 index 000000000000..14135c537664 --- /dev/null +++ b/runescape.16.png diff --git a/runescape.24.png b/runescape.24.png Binary files differnew file mode 100644 index 000000000000..55ae7e728a31 --- /dev/null +++ b/runescape.24.png diff --git a/runescape.256.png b/runescape.256.png Binary files differnew file mode 100644 index 000000000000..43b910c85f1c --- /dev/null +++ b/runescape.256.png diff --git a/runescape.32.png b/runescape.32.png Binary files differnew file mode 100644 index 000000000000..4687a46d3942 --- /dev/null +++ b/runescape.32.png diff --git a/runescape.48.png b/runescape.48.png Binary files differnew file mode 100644 index 000000000000..bbc3d63e5ee9 --- /dev/null +++ b/runescape.48.png diff --git a/runescape.gpg.key b/runescape.gpg.key new file mode 100644 index 000000000000..6cfc40645c7f --- /dev/null +++ b/runescape.gpg.key @@ -0,0 +1,18 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1 + +mQENBFYcxZcBCADQ8YnlCHt4zbX+ZQWu9uEO9NVwB2cXapFCAxbotHC2z8CFO2OC +cW9VZ3FpnYPZxwqkf/rJ97rc2fMlwrfjcTwTHewcMGNePCbIRp/A5U7Omi6FDzZs +c4RScAla74AO4BistmKvbtKDq+37qOzGrBYGx2dW+GHQXl/VV36SsVitFkh5Q7d1 +WBu9WBKvsJrRoXwwtPPvXDvDTvZ6xrCuNg5EiYnRZoUBrnVZ79CN5cbbh7zoEZ06 +Dm4XtZi4QKIHEZqqdcbvqWGjPB7xMubO+Ywf8v/tgtsIKWQndkPljYO5hhmBfp6K +lyMSPAPZNTay9Pxznfelmx7Q9A03EiUi5eBRABEBAAG0I1J1bmVTY2FwZSBMaW51 +eCA8bm9yZXBseUBqYWdleC5jb20+iQE4BBMBAgAiBQJWHMWXAhsDBgsJCAcDAgYV +CAIJCgsEFgIDAQIeAQIXgAAKCRBzc7Es4DvrS/KRB/0YK9PmyIMEVQlbuuvEllu5 +hPqyMQ66BoSwsaadllwkAJd9Y7vg7XVgc5tHalCgArBTrXZj9NunpD5rFEjagtUA +4TC3YhSDFLNrF3pkMMRQDzsC9Xl7iCnJ1KwdkFRdfTHlBnk6O1ZWbAARwlm/I007 +pTjsZI2Fao7gvr+Uj0aNDU3xTwoGouxW8QkRN1UhZQx8/IzWY0ErNTdKzfG48iLI +SpBHJHJJXvHHREHeJkhC2myARdEzF+AtisB/A/xMtMtKJ7blDIGPXFv5HHWeDGRm +YERlYPyYZ0lhFczDlB6YqA471qaiNkW4xouEeZ4LM74bifDPQTmr7m0oAeeCytNY +=Gs0d +-----END PGP PUBLIC KEY BLOCK----- diff --git a/wrapper.sh b/wrapper.sh new file mode 100644 index 000000000000..b3fc57219f98 --- /dev/null +++ b/wrapper.sh @@ -0,0 +1,5 @@ +#!/bin/sh +export PULSE_PROP_OVERRIDE="application.name='RuneScape' application.icon_name='runescape' media.role='game'" +export LD_PRELOAD="/usr/lib/libcurl.so.3" +export SDL_VIDEO_X11_WMCLASS="RuneScape" +exec /usr/bin/runescape-launcher.real "$@" |