aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--papersplease/PKGBUILD92
-rw-r--r--papersplease/launch-papersplease.sh5
-rw-r--r--papersplease/papersplease.desktop11
-rw-r--r--papersplease/papersplease.pngbin0 -> 2307 bytes
4 files changed, 108 insertions, 0 deletions
diff --git a/papersplease/PKGBUILD b/papersplease/PKGBUILD
new file mode 100644
index 0000000..d77d420
--- /dev/null
+++ b/papersplease/PKGBUILD
@@ -0,0 +1,92 @@
+# Maintainer: Alex Szczuczko <alex at szc dot ca>
+
+pkgname=papersplease
+_pkgname=papers-please
+pkgver=1.1.65
+pkgrel=3
+pkgdesc="Assume the role of an immigration inspector for the communist state of Arstotzka"
+arch=('i686' 'x86_64')
+url="http://papersplea.se"
+license=('custom:commercial')
+depends=('bash')
+options=(!strip)
+source=("$pkgname.desktop"
+ "launch-$pkgname.sh"
+ "${pkgname}.png"
+ "${_pkgname}_${pkgver}_i386.tar.gz::file://${_pkgname}_${pkgver}_i386.tar.gz")
+sha256sums=('478b736281d4d397bcff3972a548dc85bddae49342d561adefa25186310cd5ec'
+ '73700c808fe7d13c889f83759c4b6cadad7a7498786ef1ce7f54fbe0392f81be'
+ 'e8aaf890dbfa6363f0197892ca2abd5ac4a45918787a8524cf8c99d785000823'
+ '50562ad2b01cb7558147cd05de4dc37c02deb2e66fc5d3bff77994785f9551d7')
+
+# Modify depends for the arch type
+if [ "$CARCH" = "x86_64" ]
+then
+ depends+=('lib32-gcc-libs' 'lib32-libgl')
+elif [ "$CARCH" = "i686" ]
+then
+ depends+=('gcc-libs' 'libgl')
+fi
+
+# Disable compression of the package
+PKGEXT='.pkg.tar'
+
+package() {
+ cd "$srcdir/papers-please/"
+
+ #
+ # Create /opt/$pkgname directory
+ #
+
+ # Binaries
+ install -m755 -d "$pkgdir/opt/$pkgname/"
+ install -m755 -t "$pkgdir/opt/$pkgname/" "PapersPlease" "lime.ndll" "regexp.dso" "std.dso" "zlib.dso"
+
+ # Launcher
+ install -m755 -t "$pkgdir/opt/$pkgname/" "$srcdir/launch-$pkgname.sh"
+
+ # Text/config files
+ install -m644 -t "$pkgdir/opt/$pkgname/" "boot.xml" "LICENSE" "manifest" "README"
+
+ # i18n
+ install -m755 -d "$pkgdir/opt/$pkgname/loc/"
+ find "loc/" -type f -name '*.zip' -print0 | \
+ xargs -0 install -m644 -t "$pkgdir/opt/$pkgname/loc/"
+
+ # Assets
+ install -m755 -d "$pkgdir/opt/$pkgname/assets/"
+ find "assets/" -maxdepth 1 -type f -print0 | \
+ xargs -0 install -m644 -t "$pkgdir/opt/$pkgname/assets/"
+
+ # Music
+ install -m755 -d "$pkgdir/opt/$pkgname/assets/music/"
+ find "assets/music/" -maxdepth 1 -type f -print0 | \
+ xargs -0 install -m644 -t "$pkgdir/opt/$pkgname/assets/music/"
+
+ # Sound
+ install -m755 -d "$pkgdir/opt/$pkgname/assets/sound/"
+ find "assets/sound/" -type f -name "*.wav" -print0 | \
+ xargs -0 install -m644 -t "$pkgdir/opt/$pkgname/assets/sound/"
+
+
+ #
+ # System integration
+ #
+
+ # /bin
+ install -m755 -d "$pkgdir/usr/bin/"
+ ln -s "/opt/$pkgname/launch-$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
+
+ # License
+ install -m755 -d "$pkgdir/usr/share/licenses/$pkgname/"
+ ln -s "/opt/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ # Icon
+ #install -Dm644 $pkgname.png "$pkgdir/usr/share/icons/128x128/apps/$pkgname.png"
+ install -m755 -d ${pkgdir}/usr/share/icons/hicolor/128x128/apps
+ install -m644 ${srcdir}/${pkgname}.png ${pkgdir}/usr/share/icons/hicolor/128x128/apps
+
+ # .desktop File
+ install -m755 -d "$pkgdir/usr/share/applications/"
+ install -m644 -t "$pkgdir/usr/share/applications/" "$srcdir/$pkgname.desktop"
+}
diff --git a/papersplease/launch-papersplease.sh b/papersplease/launch-papersplease.sh
new file mode 100644
index 0000000..e74ebe9
--- /dev/null
+++ b/papersplease/launch-papersplease.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+DIR="/opt/papersplease"
+export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR"
+cd "$DIR"
+./PapersPlease $@
diff --git a/papersplease/papersplease.desktop b/papersplease/papersplease.desktop
new file mode 100644
index 0000000..944bbb4
--- /dev/null
+++ b/papersplease/papersplease.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Icon=/usr/share/icons/hicolor/128x128/apps/papersplease.png
+Exec=/usr/bin/papersplease
+Terminal=false
+StartupNotify=false
+
+Name=Papers Please
+Comment=Assume the role of an immigration inspector for the communist state of Arstotzka
+
+Categories=Game; \ No newline at end of file
diff --git a/papersplease/papersplease.png b/papersplease/papersplease.png
new file mode 100644
index 0000000..b5a5bfa
--- /dev/null
+++ b/papersplease/papersplease.png
Binary files differ