blob: fd06e717a9d6936288b9b6fcbf6dd67ca79322b6 (
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
|
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
pkgname=kitch-bin
pkgver=26.1.9
pkgrel=5
pkgdesc="The itch.io desktop app (beta channel) (binary release)"
url="https://itchio.itch.io/kitch"
license=('MIT')
arch=('x86_64')
provides=("kitch")
conflicts=("kitch" "kitch-setup")
depends=('alsa-lib' 'at-spi2-core' 'bash' 'cairo' 'dbus' 'expat' 'glib2'
'gtk3' 'libcups' 'libdrm' 'libx11' 'libxcb' 'libxcomposite'
'libxdamage' 'libxext' 'libxfixes' 'libxkbcommon'
'libxrandr' 'mesa' 'nspr' 'nss' 'pango')
optdepends=('firejail: sandbox preference'
'wine: Windows games')
source=("itch-linux-amd64-$pkgver.zip::https://broth.itch.ovh/itch/linux-amd64/$pkgver/archive/default"
"https://github.com/itchio/itch/raw/31d8d2f5646f9c6ab93cdd3a8bd1be6f59c687af/LICENSE")
sha256sums=('9324777a2edf37d3afaa39b073050c2a5d3a07fec45d21171813af9e6b3fd6a3'
'747d5f4b6f82e28fbd50e192ee6e977159e4848cb55e0cc6ee04219832932d7c')
prepare() {
echo "# Creating two symlinks under the HOME directory" && sleep 1
echo "# to fix the firejail issue, see:" && sleep 1
echo "# https://github.com/itchio/itch/issues/2732" && sleep 4
_DIR="$HOME/.config/itch/prereqs/firejail-amd64"
_DIR2="$HOME/.config/itch/prereqs/firejail-386"
mkdir -p $_DIR $_DIR2
ln -sf /usr/bin/firejail $_DIR
ln -sf /usr/bin/firejail $_DIR2
# Create a shortcut
echo -e "[Desktop Entry]\n\
Name=kitch\n\
Comment=The itch.io desktop app (beta channel)\n\
Exec=/opt/kitch/kitch %U\n\
Icon=kitch\n\
Terminal=false\n\
Type=Application\n\
StartupWMClass=kitch\n\
Categories=Game;
MimeType=x-scheme-handler/kitchio;x-scheme-handler/kitch;" > kitch.desktop
}
package() {
# Create directories
mkdir -p "$pkgdir/opt/kitch" "$pkgdir/usr/bin"
# Install
install -Dm644 kitch.desktop -t "$pkgdir/usr/share/applications"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/kitch"
install -Dm644 resources/app/src/static/images/tray/kitch.png -t "$pkgdir/usr/share/icons/hicolor/256x256/apps"
install -Dm644 resources/app/src/static/images/window/kitch/icon.png "$pkgdir/usr/share/icons/hicolor/128x128/apps/kitch.png"
install -Dm644 resources/app/src/static/images/window/kitch/icon-32.png "$pkgdir/usr/share/icons/hicolor/32x32/apps/kitch.png"
rm LICENSE kitch.desktop itch-linux-amd64-$pkgver.zip
mv * "$pkgdir/opt/kitch"
ln -s /opt/kitch/itch "$pkgdir/opt/kitch/kitch"
ln -s /opt/kitch/kitch "$pkgdir/usr/bin"
}
|