diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..006bdaa44e73 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Mykyta Poturai <mykyta.poturai@tutanota.com> +pkgname=hey-mail-bin +pkgver=1.0.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_9.snap" +source=("https://api.snapcraft.io/api/v1/snaps/download/$SNAPNAME") +md5sums=('2e44b4593f1644df6f2314aa037aae8b') + +#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" + cp root/meta/gui/hey-mail.desktop "$pkgdir/usr/share/applications/" +} |