diff options
author | Jean Lucas | 2019-08-02 05:02:24 -0400 |
---|---|---|
committer | Jean Lucas | 2019-08-02 05:02:24 -0400 |
commit | 7abe0a29de2acbb7ec31c7411b80e836e184087a (patch) | |
tree | 6af550e8a3da99b9a73b82792eeae61d7b6e2da3 | |
download | aur-7abe0a29de2acbb7ec31c7411b80e836e184087a.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 48 | ||||
-rw-r--r-- | PKGBUILD | 51 | ||||
-rw-r--r-- | zulip.desktop | 9 |
3 files changed, 108 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0bc7aa1f9661 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,48 @@ +pkgbase = zulip-desktop-git + pkgdesc = Real-time team chat based on the email threading model (git) + pkgver = 3.1.0+beta+r34+g47b729c + pkgrel = 1 + url = https://zulipchat.com + arch = i686 + arch = x86_64 + license = Apache + makedepends = git + makedepends = npm + makedepends = python2 + makedepends = libxkbfile + makedepends = typescript + depends = alsa-lib + depends = atk + depends = at-spi2-atk + depends = cairo + depends = dbus + depends = fontconfig + depends = gdk-pixbuf2 + depends = glib2 + depends = gtk3 + depends = hicolor-icon-theme + depends = libcups + depends = libxcomposite + depends = libxcursor + depends = libxdamage + depends = libxext + depends = libxfixes + depends = libxi + depends = libxkbfile + depends = libxrandr + depends = libxrender + depends = libxss + depends = libxtst + depends = nspr + depends = nss + depends = pango + provides = zulip-desktop + conflicts = zulip-desktop + conflicts = zulip-desktop-bin + source = git+https://github.com/zulip/zulip-desktop + source = zulip.desktop + sha512sums = SKIP + sha512sums = 7696a6874d17957f99452452723ae1a6b32b6814b018361a71ed1fe0191e1c6da6f3ad693e2e279615e74f687c380ff2f6dab8b69fcd82476e8f33b56a6b4cb5 + +pkgname = zulip-desktop-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e06436c727a1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Contributor: Jean Lucas <jean@4ray.co> + +pkgname=zulip-desktop-git +pkgver=3.1.0+beta+r34+g47b729c +pkgrel=1 +pkgdesc='Real-time team chat based on the email threading model (git)' +arch=(i686 x86_64) +url=https://zulipchat.com +license=(Apache) +depends=(alsa-lib atk at-spi2-atk cairo dbus fontconfig gdk-pixbuf2 glib2 gtk3 hicolor-icon-theme libcups libxcomposite libxcursor libxdamage libxext libxfixes libxi libxkbfile libxrandr libxrender libxss libxtst nspr nss pango) +makedepends=(git npm python2 libxkbfile typescript) +provides=(zulip-desktop) +conflicts=(zulip-desktop zulip-desktop-bin) +source=(git+https://github.com/zulip/${pkgname/-git/} + zulip.desktop) +sha512sums=('SKIP' + '7696a6874d17957f99452452723ae1a6b32b6814b018361a71ed1fe0191e1c6da6f3ad693e2e279615e74f687c380ff2f6dab8b69fcd82476e8f33b56a6b4cb5') + +pkgver() { + cd ${pkgname/-git/} + git describe --tags | sed 's#v##;s#-#+#g;s#+\([0-9]\)#+r\1#' +} + +prepare() { + # We need an API key for Sentry, so let's not use it + sed -i 's#!isDev#isDev#' ${pkgname/-git/}/app/renderer/js/utils/sentry-util.ts +} + +build() { + cd ${pkgname/-git/} + npm i + tsc + npx electron-builder --dir +} + +package() { + install -Dm 644 zulip.desktop -t "$pkgdir"/usr/share/applications + + cd ${pkgname/-git/} + + mkdir "$pkgdir"/usr/{lib,bin} + cp -a dist/linux-unpacked "$pkgdir"/usr/lib/${pkgname/-git/} + ln -s /usr/lib/${pkgname/-git/}/zulip "$pkgdir"/usr/bin + + for i in 16 24 32 48 64 96 128 256 512; do + install -Dm 644 build/icons/${i}x${i}.png \ + "$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/zulip.png + done + + install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/zulip-desktop +} diff --git a/zulip.desktop b/zulip.desktop new file mode 100644 index 000000000000..4768ad88eaf6 --- /dev/null +++ b/zulip.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Zulip +Comment=Real-time team chat based on the email threading model +Exec=zulip +Icon=zulip +Categories=Network;InstantMessaging; +Terminal=false |