blob: a3d0d679465adb5e97ae506885c93522fb30bdf9 (
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
|
# Maintainer: zoorat <zoorat [at] protonmail [dot] com>
# Contributor: Original submitter's Dimitris Kiziridis <ragouel at outlook dot com>
_pkgname="opencomic"
pkgname="$_pkgname-bin"
pkgver=1.3.1
pkgrel=1
pkgdesc="Comic and Manga reader, written with Node.js and using Electron."
arch=('x86_64')
url="https://github.com/ollm/OpenComic"
license=('GPL3')
depends=("alsa-lib"
"at-spi2-core"
"cairo"
"dbus"
"expat"
"gcc-libs"
"gdk-pixbuf2"
"glib2"
"glibc"
"gtk3"
"hicolor-icon-theme"
"libcups"
"libdrm"
"libx11"
"libxcb"
"libxcomposite"
"libxdamage"
"libxext"
"libxfixes"
"libxkbcommon"
"libxrandr"
"mesa"
"nodejs"
"nspr"
"nss"
"pango"
"sh")
provides=("$_pkgname")
conflicts=("$_pkgname")
# replaces=("$_pkgname")
changelog="changelog.md"
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ollm/OpenComic/releases/download/v${pkgver}/opencomic-${pkgver}.${CARCH}.rpm"
"https://raw.githubusercontent.com/ollm/OpenComic/master/LICENSE")
b2sums=('da0f4154bd81f5c9e2f42356bf7c9b710016970062828330a5fa0464b3aa8c2313079bc1109aeb24f9fd31d4f0713fb4b5209899ab8059254de87cb0212deeed'
'399283bc59e70998486f2ae7b0af9f2f241206dd660e50808be3cef500adef2a9e8d449304f506d93bd2281e6b0729b16145173591deeb105ef545b769453e10')
build() {
# modifying .desktop file
sed -i -E "s|Exec=/opt/OpenComic/opencomic|Exec=/usr/bin/${_pkgname}|" "usr/share/applications/${_pkgname}.desktop"
}
package() {
# copying file
install -dm 755 "${pkgdir}/usr/share/"
cp -aR usr/share/* "${pkgdir}/usr/share/"
install -dm 755 "${pkgdir}/opt/${pkgname}"
cp -aR opt/OpenComic/* "${pkgdir}/opt/${pkgname}"
# Fix permissions
for d in locales resources; do
chmod 755 "${pkgdir}/opt/${pkgname}/$d"
find "${pkgdir}/opt/${pkgname}/$d" -type d -exec chmod 755 {} +
done
# Link entry point
install -dm 755 "${pkgdir}/usr/bin"
ln -sf "/opt/${pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
# Remove unused files
rm -rf "${pkgdir}/usr/lib"
rm -rf "${pkgdir}/opt/${pkgname}"/{usr,swiftshader,AppRun,${_pkgname}.{desktop,png}}
rm -rf "${pkgdir}/opt/${pkgname}"/{libGLESv2.so,libEGL.so,libvk_swiftshader.so,libvulkan.so}
rm -rf "${pkgdir}/opt/${pkgname}/resources/app.asar.unpacked/unrar"
rm -rf "${pkgdir}/opt/${pkgname}/resources/app.asar.unpacked/node_modules/7zip-bin/mac"
rm -rf "${pkgdir}/opt/${pkgname}/resources/app.asar.unpacked/node_modules/7zip-bin/linux/"/{arm64/,arm/,ia32/}
rm -rf "${pkgdir}/opt/${pkgname}"/{locales,LICENSE*}
# Install LICENSE file
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|