blob: b2e2b48bd67033128957ad70b62391229ab44003 (
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
|
# Maintainer:
# Contributor: Felix Golatofski <contact@xdfr.de>
_pkgname=gmail-app
pkgname=$_pkgname-git
pkgver=4.c746b87
pkgrel=1
pkgdesc="Google GMail packaged as Electron app"
arch=('any')
url="https://github.com/fgnass/gmail-app"
license=('custom:UNLICENSE')
depends=('alsa-lib' 'gconf' 'gtk2' 'libnotify' 'libxss' 'libxtst' 'nss' 'xdg-utils')
makedepends=('git' 'npm' 'gendesk')
source=('git+https://github.com/fgnass/gmail-app.git'
'package.json')
sha256sums=('SKIP'
'1a0128814b61bee125247409e6393ec17e56ca62707b730f72290c89c2886107')
conflicts=('inbox-app')
provides=('inbox-app')
pkgver() {
cd $_pkgname
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
prepare() {
gendesk -n --pkgname "$pkgname" --pkgdesc "$pkgdesc"
}
build() {
cd $srcdir/$_pkgname
cp $srcdir/package.json .
npm install
npm run pack-linux
}
package() {
cd $srcdir/$_pkgname
install -d $pkgdir/opt
cp -r dist/Gmail-linux-x64 $pkgdir/opt/$pkgname
install -dm755 ${pkgdir}/usr/bin
ln -sf /opt/$pkgname/gmail $pkgdir/usr/bin/gmail-app
msg "Copying license..."
install -D -m 644 UNLICENSE $pkgdir/usr/share/licenses/${pkgname%-git}/UNLICENSE
msg "Copying desktop file..."
install -Dm644 "$srcdir/${pkgname%-git}.desktop" "$pkgdir/usr/share/applications/${pkgname%-git}.desktop"
msg "Copying icons..."
install -Dm644 "icon.iconset/icon_256x256.png" "$pkgdir/usr/share/pixmaps/${pkgname%-git}.png"
}
|