summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Teibes2015-11-12 00:41:38 +0100
committerCarsten Teibes2015-11-12 00:41:38 +0100
commita4db9ff81d5486551ab117c5a0fed719d0632551 (patch)
tree131aa363a3d724eeed967e7d11344e3526276d00
parent677f96127871bcb59b91ffa292e41313d3879b88 (diff)
downloadaur-a4db9ff81d5486551ab117c5a0fed719d0632551.tar.gz
[upd] 1.0.0.4→2.0.0.4
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD41
-rw-r--r--papers-please-gog.desktop8
3 files changed, 40 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index db8f3ff5c9f..dcc322da8c1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,22 @@
pkgbase = papers-please-gog
pkgdesc = A Dystopian Document Thriller (gog.com version)
- pkgver = 1.0.0.4
+ pkgver = 2.0.0.4
pkgrel = 1
url = http://gog.com/game/papers_please
arch = x86_64
arch = i686
license = custom: commercial
- depends = bash
- depends = libgl
- depends = gcc-libs
- source = gog://gog_papers_please_1.0.0.4.tar.gz
+ depends = sh
+ source = gog_papers_please_2.0.0.4.sh::gogdownloader://papers_please/installer_linux_en
source = papers-please-gog.sh
- sha256sums = a6929625cc8d6a87464cf8b099824e03990e1bef6e33f61cec24cb867cf6e387
+ source = papers-please-gog.desktop
+ sha256sums = 13a37a037ef9bda90ac77e878415e678e53814c2ebaf2be29819b0cad297f5ad
sha256sums = 9227f364836b975d05609481c0d67e7b6fd8e52f7bb931b39af98d864b296d2e
+ sha256sums = 3273cd3c3f35495d00debbd0d10ad2d188b8cf1b40bc9a754c7e4c6fe82173f6
+ depends_x86_64 = lib32-libgl
+ depends_x86_64 = lib32-gcc-libs
+ depends_i686 = libgl
+ depends_i686 = gcc-libs
pkgname = papers-please-gog
diff --git a/PKGBUILD b/PKGBUILD
index c04eb4a4bfc..b0f9538e126 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,32 @@
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
pkgname=papers-please-gog
-pkgver=1.0.0.4
+pkgver=2.0.0.4
pkgrel=1
pkgdesc="A Dystopian Document Thriller (gog.com version)"
url="http://gog.com/game/papers_please"
license=('custom: commercial')
arch=('x86_64' 'i686')
-depends=('bash' 'libgl' 'gcc-libs')
-if [ "$CARCH" == "x86_64" ]; then
- depends=('bash' 'lib32-libgl' 'lib32-gcc-libs')
-fi
-# You need to download the gog.com installer file manually or with lgogdownloader.
-# Or you can configure DLAGENTS in makepkg.conf to auto-search through a directory
-# containing gog.com downloads:
-# DLAGENTS=('gog::/usr/bin/find /path/to/downloads -name $(echo %u | cut -c 7-) -exec ln -s \{\} %o \; -quit')
-DLAGENTS+=('gog::/usr/bin/echo "Could not find \"$(echo %u | cut -c 7-)\". Manually download it to \"$(pwd)\", or set up a gog:// DLAGENT."; exit 1')
-source=("gog://gog_papers_please_$pkgver.tar.gz"
- "$pkgname.sh")
-sha256sums=('a6929625cc8d6a87464cf8b099824e03990e1bef6e33f61cec24cb867cf6e387'
- '9227f364836b975d05609481c0d67e7b6fd8e52f7bb931b39af98d864b296d2e')
+depends=('sh')
+depends_i686=('libgl' 'gcc-libs')
+depends_x86_64=('lib32-libgl' 'lib32-gcc-libs')
+source=("gog_papers_please_$pkgver.sh"::"gogdownloader://papers_please/installer_linux_en"
+ "$pkgname.sh"
+ "$pkgname.desktop")
+sha256sums=('13a37a037ef9bda90ac77e878415e678e53814c2ebaf2be29819b0cad297f5ad'
+ '9227f364836b975d05609481c0d67e7b6fd8e52f7bb931b39af98d864b296d2e'
+ '3273cd3c3f35495d00debbd0d10ad2d188b8cf1b40bc9a754c7e4c6fe82173f6')
PKGEXT=".pkg.tar"
+# You need to download the gog.com installer file to this directory ($PWD),
+# either manually or with lgogdownloader. You can also configure DLAGENTS in
+# makepkg.conf to auto-download.
+#
+# The following is just a fallback to the above to notify the user:
+DLAGENTS+=('gogdownloader::/usr/bin/awk BEGIN{print"Please\ download\ the\ file\ \\""\ substr("%o",1,length("%o")-5)\ "\\"\ manually\\nor\ setup\ a\ gogdownloader://\ DLAGENT\ in\ makepkg.conf!\ Read\ this\ PKGBUILD\ for\ more\ information.";exit\ 1}')
+
package() {
- cd "Papers, Please"
+ cd data/noarch
install -d "$pkgdir"/opt/papers-please
# data - binaries
cp -rup game/* "$pkgdir"/opt/papers-please
@@ -32,8 +35,8 @@ package() {
install -m644 docs/README support/support_notice.txt "$pkgdir"/usr/share/doc/$pkgname
install -m644 docs/"End User License Agreement.txt" game/LICENSE "$pkgdir"/usr/share/licenses/$pkgname
# .desktop file and launcher
- install -Dm644 support/gog-papers-please-primary.desktop "$pkgdir"/usr/share/applications/papers-please.desktop
- install -Dm644 support/gog-papers-please.png "$pkgdir"/usr/share/pixmaps/papers-please.png
- sed "s|gog-||" -i "$pkgdir"/usr/share/applications/papers-please.desktop
- install -Dm755 ../$pkgname.sh "$pkgdir"/usr/bin/papers-please
+ install -Dm644 support/icon.png "$pkgdir"/usr/share/pixmaps/papers-please.png
+ cd "$srcdir"
+ install -Dm644 $pkgname.desktop "$pkgdir"/usr/share/applications/papers-please.desktop
+ install -Dm755 $pkgname.sh "$pkgdir"/usr/bin/papers-please
}
diff --git a/papers-please-gog.desktop b/papers-please-gog.desktop
new file mode 100644
index 00000000000..efd7a9e4a15
--- /dev/null
+++ b/papers-please-gog.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Papers, Please
+Comment=Papers, Please (GOG.com)
+Exec=papers-please
+Icon=papers-please
+Terminal=false
+Type=Application
+Categories=Game;