# Maintainer: Squalou pkgname=google-chat-linux-git pkgver=0.5.4 pkgrel=1 pkgdesc="Unofficial electron-based desktop client for Google Chat, electron included" arch=('x86_64' 'i686') url="https://github.com/squalou/google-chat-linux.git" license=('WTFPL') makedepends=('nodejs' 'npm' 'xz' 'binutils') conflicts=('google-chat-linux-electron7-git') appname="${pkgname%-git}" [[ $CARCH == 'x86_64' ]] && _arch='x64' || _arch='ia32' source=("${pkgname%}::git+${url}#branch=master") source=("https://github.com/squalou/${appname}/releases/download/${pkgver}-${pkgrel}/${appname}_${pkgver}-${pkgrel}_amd64.deb") sha512sums=('2119fa71b316767fafa43fddb674f49ea0ff1b92de0da62b2bf4316526267ce30fe5d6e1a9f9a9c29462610d521ca5b07c36cad48d0f34f1c269b42887bbee8f') build() { ar x "${appname}_${pkgver}-${pkgrel}_amd64.deb" tar xJf data.tar.xz } package() { mv "${srcdir}/usr" "${pkgdir}/usr" mv "${srcdir}/opt" "${pkgdir}/opt" }