summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 55ce60f0a0f196d2344d60c65a7151960a3313fa (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
# Maintainer: Mykyta Poturai <mykyta.poturai@tutanota.com>
pkgname=hey-mail-bin
pkgver=1.2.11
pkgrel=1
pkgdesc="Hey Mail desktop app"
url="https://hey.com/apps/"
arch=('x86_64')
license=('Proprietary')
depends=('c-ares' 'ffmpeg' 'gtk3' 'http-parser' 'libevent' 'libvpx' 'libxslt' 'libxss' 'minizip' 'nss' 're2' 'snappy' 'libnotify' 'libappindicator-gtk2' 'libappindicator-gtk3')
makedepends=('squashfs-tools')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
SNAPNAME="lfWUNpR7PrPGsDfuxIhVxbj0wZHoH7bK_21.snap"
source=("https://api.snapcraft.io/api/v1/snaps/download/$SNAPNAME")
md5sums=('901b9dbecc18bd4116223217dcad068e')

#curl -H 'Snap-Device-Series: 16' http://api.snapcraft.io/v2/snaps/info/hey-mail
build() {
	unsquashfs -force -dest root $SNAPNAME
}

package() {
	install -d "$pkgdir/usr/bin"
	install -d "$pkgdir/opt/hey-mail"
	install -d "$pkgdir/usr/share/applications"
	cp -r root/* "$pkgdir/opt/hey-mail"
	rm -rf "$pkgdir/opt/hey-mail/usr"
	rm -rf "$pkgdir/opt/hey-mail/gnome-platform"
	rm -rf "$pkgdir/opt/hey-mail/lib"
	rm -rf "$pkgdir/opt/hey-mail/libvulkan.so"
	rm -rf "$pkgdir/opt/hey-mail/libGLESv2.so"
	rm -rf "$pkgdir/opt/hey-mail/libEGL.so"
	ln -s /opt/hey-mail/hey-mail "$pkgdir/usr/bin/hey-mail"
    sed "s/\${SNAP}/\/opt\/hey-mail/" root/meta/gui/hey-mail.desktop > "$pkgdir/usr/share/applications/hey-mail.desktop"
}