blob: d6e2cb056b7aec164a7d4699979bbd75073f1e56 (
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
50
51
52
53
54
55
|
# Maintainer: Claudia Pellegrino <aur ät cpellegrino.de>
# Contributor: Tharre <tharre3@gmail.com>
# Contributor: Alex Szczuczko <alex at szc dot ca>
pkgname=papersplease
pkgver=1.4.11.124
pkgrel=1
pkgdesc="Assume the role of an immigration inspector for the communist state of Arstotzka"
arch=('x86_64')
url="http://papersplea.se"
license=('LicenseRef-scancode-commercial-license')
depends=('bash' 'gcc-libs' 'glibc' 'hicolor-icon-theme')
optdepends=(
'alsa-lib: alsa sound support'
'libpulse: pulseaudio sound support'
)
options=(!strip)
source=("$pkgname.desktop"
"launch-$pkgname.sh"
"$pkgname.png"
"papers-please_${pkgver}_x64.tar::hib://papers-please_${pkgver}_x64.tar")
sha256sums=('478b736281d4d397bcff3972a548dc85bddae49342d561adefa25186310cd5ec'
'e199745f2158fd04fd70ce463aa57452be3a5d8c9c390970e2cadbe7d2122dd4'
'e8aaf890dbfa6363f0197892ca2abd5ac4a45918787a8524cf8c99d785000823'
'27cc4cb801b9a50fddb3d5d54609dd5ed21a499fd2c734da11a51331d438242a')
# Disable compression of the package
PKGEXT='.pkg.tar'
# You can download the Humble Indie Bundle file manually, or you can configure
# DLAGENTS in makepkg.conf to auto-download.
#
#shellcheck disable=SC2016 # Not meant to be expanded
DLAGENTS+=('hib::/usr/bin/echo "Could not find %u. Download manually to \"$(pwd)\" or setup hib:// DLAGENT in /etc/makepkg.conf."; exit 1')
package() {
cd "$srcdir"
# bin
install -Dm755 launch-papersplease.sh "$pkgdir/usr/bin/$pkgname"
# license
install -Dm644 papers-please/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
rm papers-please/LICENSE
# icon
install -Dm644 "$pkgname.png" -t "$pkgdir/usr/share/icons/hicolor/128x128/apps"
# .desktop
install -Dm644 "$pkgname.desktop" -t "$pkgdir/usr/share/applications"
# rest
install -dm755 "${pkgdir}/opt/"
cp -r papers-please "${pkgdir}/opt/${pkgname}/"
}
|