blob: 64e56e3f7b1a667ef57336d9389639bb8930294e (
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: Alexis Potelle <alexispotelle at gmail dot com>
_instname=malt
pkgname=malt
pkgver=1.0.0
pkgrel=1
pkgdesc="A native desktop application for easy access to Malt, the online freelance and professional assignment platform."
arch=('x86_64')
url=https://www.malt.com/
license=('GNU AGPL')
groups=()
depends=()
makedepends=(nodejs nodejs-nativefier npm)
provides=($pkgname)
conflicts=($pkgname)
replaces=()
backup=()
options=()
install=
source=("gen.png"
"gen.desktop"
"no-scrollbar.css")
sha256sums=('378a556cbdd699efe1031970cbff94c4ea5f7edca4af76b0374acfaf3430a1e5'
'7e9db082baae45b560e7e8cf9d8ba176f80c93487e6fcc9eb7c227fef007ea81'
'1474a74c47dfeb879d4a2538b3b24bfdca75be878fbe1c04fd82fba2e112f381')
build() {
nativefier $url \
--icon gen.png \
--name $_instname \
--user-agent "Mozilla/5.0 (X11; Linux ${CARCH};) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.133 Safari/537.36"\
--inject no-scrollbar.css\
--internal-urls "(.*?malt\..*?)" \
--single-instance \
--tray
}
package() {
install -d "$pkgdir"/opt "$pkgdir"/usr/{bin,share/pixmaps}
install -Dm644 gen.desktop "$pkgdir"/usr/share/applications/$_instname.desktop
cp -rL $_instname-linux-* "$pkgdir"/opt/$pkgname
ln -sf /opt/$pkgname/$_instname "$pkgdir"/usr/bin/$_instname
cp $srcdir/gen.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
chmod 666 "$pkgdir"/opt/$pkgname/resources/app/nativefier.json
}
|