blob: 52f6dcff95bee04997ada4368087593b34a67507 (
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
94
95
|
# Maintainer: zoorat <zoorat [at] protonmail [dot] com>
_pkgname="fluent-reader"
pkgname="$_pkgname-bin"
pkgver=1.1.4
pkgrel=2
pkgdesc="Modern desktop RSS reader built with Electron, React, and Fluent UI."
arch=('x86_64')
# url="https://github.com/yang991178/fluent-reader"
url="https://hyliu.me/fluent-reader/"
license=('custom:BSD3')
depends=("alsa-lib"
"at-spi2-core"
"cairo"
"dbus"
"expat"
"gcc-libs"
"glib2"
"glibc"
"gtk3"
"hicolor-icon-theme"
"libcups"
"libdrm"
"libx11"
"libxcb"
"libxcomposite"
"libxdamage"
"libxext"
"libxfixes"
"libxkbcommon"
"libxrandr"
"mesa"
"nspr"
"nss"
"pango")
provides=("$_pkgname")
conflicts=("$_pkgname")
replaces=("$_pkgname")
options=(strip emptydirs zipman)
changelog="changelog.md"
source=("${pkgname}-${pkgver}.${CARCH}.AppImage::https://github.com/yang991178/fluent-reader/releases/download/v${pkgver}/Fluent.Reader.${pkgver}.AppImage"
"https://raw.githubusercontent.com/yang991178/fluent-reader/master/LICENSE")
noextract=("${pkgname}-${pkgver}.${CARCH}.AppImage")
b2sums=('28c760a4451cf5c5b35c6daea7fe8d9a7bdcde2efe7ade93ad17183013e992ee1e92ce7d191f7bba67fcbab9d1a9b91b784d55d98416f88d7c3e20c9fe47ecfd'
'0a8e04b682d991c30efd88ff67147b221eaf09e12c7234a776a90897bbedeb8379f73c5d853121f1b37d54bb510ea1bf223b8ef0f480ad3156c4159cbd78f0ac')
prepare() {
# making .AppImage file executable
chmod +x "${pkgname}-${pkgver}.${CARCH}.AppImage"
# extract .AppImage file
"./${pkgname}-${pkgver}.${CARCH}.AppImage" --appimage-extract >/dev/null
}
build() {
# modifying .desktop file
sed -i -E "s|Exec=AppRun|Exec=/usr/bin/${_pkgname}|" "squashfs-root/${_pkgname}.desktop"
}
package() {
# Copy app files
install -dm 755 "${pkgdir}/opt/${pkgname}"
cp -a squashfs-root/* "${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
chown root:root "${pkgdir}/opt/${pkgname}/chrome-sandbox"
chmod 4755 "${pkgdir}/opt/${pkgname}/chrome-sandbox"
# Link entry point
install -dm 755 "${pkgdir}/usr/bin"
ln -sf "/opt/${pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
# Copy icons files
install -dm 755 "${pkgdir}/usr/share/icons"
find squashfs-root/usr/share/icons -type d -exec chmod 755 {} +
cp -a squashfs-root/usr/share/icons/* "${pkgdir}/usr/share/icons"
# Copy desktop file
install -Dm 644 "squashfs-root/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
# Install LICENSE file
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Remove unused files
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.1}
rm -rf "${pkgdir}/opt/${pkgname}"/LICENSE*
}
|