blob: a8ec44f814e5c15f88c83693e8c9260211db74ca (
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
|
# Maintainer: John-Michael Mulesa <jmulesa@gmail.com>
# Contributor: XZS <d dot f dot fischer at web dot de>
# Contributor: Martin Lukes <martin.meridius@gmail.com>
# Contributor: Samuel Littley <samuel.littley@toastwaffle.com>
# Contributor: William Giokas <1007380@gmail.com>
_longname="Mini Metro"
pkgname="${_longname,,}"
pkgname="${pkgname/ }"
pkgver=52
pkgrel=1
pkgdesc='minimalistic subway layout game'
url="http://dinopoloclub.com/${pkgname}/"
license=('custom:None')
arch=('x86_64')
depends=('libgl' 'libx11' 'glu' 'desktop-file-utils' 'gtk-update-icon-cache')
makedepends=('imagemagick')
DLAGENTS+=('hib::/usr/bin/echo "Could not find %u. Manually download it to \"$(pwd)\", or set up a hib:// DLAGENT in /etc/makepkg.conf."; exit 1')
install=desktop.install
source=("hib://${_longname/ }-release-${pkgver}-linux.tar.gz"
"${pkgname}.desktop"
"starter.sh"
"${pkgname}.png::${url%/*/*}/wp-content/uploads/2019/08/${_longname/ /-}-Icon.png")
sha256sums=('7f7bdfbf22ac694c61e1fcd334a1368d17f192c4b380772a82e46950668716c8'
'b6353b9b373bd4ff23b11509c41b72cd28d5a8046546cd512a2dd7a62ef16dd3'
'5bef1047ade8fded513686f30fa378a22c4f8376325eb76e123c355a05ed059b'
'2498480f8ddfcb8a990431e01d98704aac9f88c5b733e2dc485e613e84de045b')
package() {
# Prepare variables.
destdir="$pkgdir/opt/$pkgname"
install -d "$destdir" "$pkgdir"/usr/{bin,share/applications}
# Install the game and data files.
cp -r --no-preserve=mode,ownership "${_longname}_Data" "$destdir"
install "$_longname" "$destdir"
install "UnityPlayer.so" "$destdir"
# Care for the icon.
for size in 16 22 24 32 36 48 64 72 96 128 192 256 384 512; do
size=${size}x${size}
install -d "$pkgdir/usr/share/icons/hicolor/$size/apps"
convert $pkgname.png -resize $size "$pkgdir/usr/share/icons/hicolor/$size/apps/$pkgname.png"
done
# Compose the desktop entry and starter.
export longname="$_longname" pkgname pkgdesc
envsubst < "$pkgname.desktop" > "$pkgdir/usr/share/applications/$pkgname.desktop"
envsubst < starter.sh > "$pkgdir/usr/bin/$pkgname"
chmod +x "$pkgdir/usr/bin/$pkgname"
}
|