blob: 1497b1b92f795303999d16dc94fa109f61939749 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# Maintainer: Tharre <tharre3@gmail.com>
# Contributor: Alex Szczuczko <alex at szc dot ca>
pkgname=papersplease
_pkgname=papers-please
pkgver=1.1.65
pkgrel=6
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=('hicolor-icon-theme' 'xdg-utils')
depends_x86_64=('lib32-libgl')
depends_i386=('libgl')
install=papersplease.install
options=(!strip)
source=("$pkgname.desktop"
"launch-$pkgname.sh"
"${pkgname}.png"
"${pkgname}.install"
"${_pkgname}_${pkgver}_i386.tar.gz::hib://${_pkgname}_${pkgver}_i386.tar.gz")
sha256sums=('478b736281d4d397bcff3972a548dc85bddae49342d561adefa25186310cd5ec'
'e199745f2158fd04fd70ce463aa57452be3a5d8c9c390970e2cadbe7d2122dd4'
'e8aaf890dbfa6363f0197892ca2abd5ac4a45918787a8524cf8c99d785000823'
'9b7837376b5ba5bfb46b2ffff6cab3d527fbe479694d097f4fbabe2bccca6f07'
'50562ad2b01cb7558147cd05de4dc37c02deb2e66fc5d3bff77994785f9551d7')
# 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.
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/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"
}
|