-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathPKGBUILD
More file actions
43 lines (34 loc) · 1015 Bytes
/
Copy pathPKGBUILD
File metadata and controls
43 lines (34 loc) · 1015 Bytes
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
pkgname=yomikiru
pkgver=VERSION_REPLACE
pkgrel=1
pkgdesc="An offline desktop reader for manga, comics, and novels. Offers a customizable reading experience with extensive settings, shortcuts, themes and layouts."
arch=("x86_64")
url="https://github.com/mienaiyami/yomikiru"
license=("MIT")
depends=()
options=(!strip !debug)
source=("${pkgname}-linux-x64-${pkgver}.zip")
sha256sums=("SKIP")
package() {
install -dm755 "$pkgdir/usr/lib/$pkgname"
install -dm755 "$pkgdir/usr/bin"
install -dm755 "$pkgdir/usr/share/applications"
# extract electron bundle
bsdtar -xf "$srcdir/${pkgname}-linux-x64-${pkgver}.zip" \
--strip-components=1 \
-C "$pkgdir/usr/lib/$pkgname"
# launcher
install -Dm755 /dev/stdin "$pkgdir/usr/bin/$pkgname" <<EOF
#!/bin/bash
exec /usr/lib/$pkgname/yomikiru "\$@"
EOF
# desktop file
install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/$pkgname.desktop" <<EOF
[Desktop Entry]
Name=Yomikiru
Exec=$pkgname
Icon=$pkgname
Type=Application
Categories=Utility;
EOF
}