# Maintainer: Eric Engestrom # Maintainer: Jean Lucas # Maintainer: AI5C # Contributor: kaptoxic # Contributor: Matthew Avant # Contributor: Rose Ames pkgname=zulip-desktop pkgver=5.4.3 pkgrel=1 pkgdesc='Real-time team chat based on the email threading model' arch=(i686 x86_64) url=https://zulipchat.com license=(Apache) depends=(libxkbfile gtk3 libxss nss) makedepends=(npm python2) source=($pkgname-$pkgver.tar.gz::https://github.com/zulip/$pkgname/archive/v$pkgver.tar.gz $pkgname.desktop) sha512sums=('b1654659dd8b33c9131f24bb596a920cb62e83b468a70d48282f9d3513dc2b665096ca0cd20fb7e09f0904128ca12f6405e56e97d9a2a1323bf2c57beb22ae4f' '7696a6874d17957f99452452723ae1a6b32b6814b018361a71ed1fe0191e1c6da6f3ad693e2e279615e74f687c380ff2f6dab8b69fcd82476e8f33b56a6b4cb5') build() { cd $pkgname-$pkgver npm i npm run pack } package() { cd $pkgname-$pkgver install -d "$pkgdir"/usr/{lib,bin} cp -a dist/linux-unpacked "$pkgdir"/usr/lib/$pkgname ln -s /usr/lib/$pkgname/zulip "$pkgdir"/usr/bin install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname install -Dm 644 ../$pkgname.desktop -t "$pkgdir"/usr/share/applications 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 }