blob: 82659b0aee0a95a0559439e137f54f0fc91eae82 (
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
|
# Maintainer: sudhip nashi (sudhip@nashi.us)
pkgname='gmail-nativefier'
pkgbase='google-mail-nativefier'
pkgver=1.1
pkgrel=1
pkgdesc="Gmail wrapped as a desktop application through Nativefier"
arch=('x86_64')
url=https://mail.google.com
license=('MIT')
makedepends=(npm nodejs-nativefier nodejs)
source=('gmailicon.png'
'gmail.desktop')
sha256sums=(fbe8559ad3b4307678250a671b8c259adf8ded119c8d133d1b706f0f4879a051
00903986203291fe7a6636562ac24ebb62854a7b03fdf7e3039906b753b9f68e)
appname=gmail-desktop
build() {
nativefier "https://mail.google.com/" \
--icon gmailicon.png \
--maximize \
--show-menu-bar \
--single-instance \
--name $appname
}
package() {
install -d "$pkgdir"/opt "$pkgdir"/usr/{bin,share/pixmaps}
install -Dm644 gmail.desktop "$pkgdir"/usr/share/applications/$appname.desktop
cp -rL $appname-linux-* "$pkgdir"/opt/$pkgname
ln -sf /opt/$pkgname/$appname "$pkgdir"/usr/bin/$appname
ln -sf /opt/$pkgname/resources/app/icon.png "$pkgdir"/usr/share/pixmaps/$appname.png
chmod 666 "$pkgdir"/opt/$pkgname/resources/app/nativefier.json
sed -i 's/!options.saveAs/options.saveAs/g' "$pkgdir"/opt/$pkgname/resources/app/lib/main.js
}
|