diff options
author | Rafael Delboni | 2021-09-01 00:21:53 -0300 |
---|---|---|
committer | Rafael Delboni | 2021-09-01 00:21:53 -0300 |
commit | 109f774966cbe505ac5a622f163f98ca6cbb0394 (patch) | |
tree | e33e0afeae11c9d8f75f0f39d92c3f68683583fd | |
parent | c34ff101b7431ea534837947b3a96d381c6a7361 (diff) | |
download | aur-109f774966cbe505ac5a622f163f98ca6cbb0394.tar.gz |
feat: Bump version, adds installer and namefix
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 20 | ||||
-rw-r--r-- | tandem-chat.install | 25 |
4 files changed, 41 insertions, 13 deletions
@@ -1,8 +1,9 @@ pkgbase = tandem-chat pkgdesc = Tandem Chat - a virtual office for remote teams - pkgver = 1.6.210 + pkgver = 1.8.818 pkgrel = 1 url = https://tandem.chat/ + install = tandem-chat.install arch = x86_64 license = Proprietary depends = at-spi2-core @@ -13,8 +14,7 @@ pkgbase = tandem-chat depends = xdg-utils options = !emptydirs options = !strip - source = https://downloads.tandem.chat/linux/rpm/x64 - sha256sums = SKIP + source_x86_64 = https://downloads.tandem.chat/linux/rpm/x64 + sha512sums_x86_64 = SKIP pkgname = tandem-chat - diff --git a/.gitignore b/.gitignore index f71c635dafda..c55951444de5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ !.gitignore !PKGBUILD !.SRCINFO +!tandem-chat.install @@ -1,7 +1,8 @@ # Maintainer: tekacs <pkg@tekacs.com> +# Maintainer: rafaeldelboni <rafael@delboni.cc> pkgname=tandem-chat -pkgver=1.6.210 +pkgver=1.8.818 pkgrel=1 pkgdesc='Tandem Chat - a virtual office for remote teams' arch=('x86_64') @@ -9,15 +10,16 @@ url="https://tandem.chat/" license=('Proprietary') options=('!emptydirs' '!strip') depends=('at-spi2-core' 'gtk3' 'libxtst' 'libnotify' 'nss' 'xdg-utils') +install=${pkgname}.install -source=('https://downloads.tandem.chat/linux/rpm/x64') -sha256sums=('SKIP') +source_x86_64=("$pkgname-$pkgver::https://downloads.tandem.chat/linux/rpm/x64") +sha512sums_x86_64=('SKIP') package() ( - mkdir -p "${pkgdir}/opt/" - mkdir -p "${pkgdir}/usr/lib/" - mkdir -p "${pkgdir}/usr/share/" - cp -r "${srcdir}/opt/." "${pkgdir}/opt/" - cp -r "${srcdir}/usr/lib/." "${pkgdir}/usr/lib/" - cp -r "${srcdir}/usr/share/." "${pkgdir}/usr/share/" + mkdir -p "${pkgdir}/opt/" + mkdir -p "${pkgdir}/usr/lib/" + mkdir -p "${pkgdir}/usr/share/" + cp -r "${srcdir}/opt/." "${pkgdir}/opt/" + cp -r "${srcdir}/usr/lib/." "${pkgdir}/usr/lib/" + cp -r "${srcdir}/usr/share/." "${pkgdir}/usr/share/" ) diff --git a/tandem-chat.install b/tandem-chat.install new file mode 100644 index 000000000000..f1e3238498e1 --- /dev/null +++ b/tandem-chat.install @@ -0,0 +1,25 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + + # Link to the binary + ln -sf '/opt/Tandem/tandem' '/usr/bin/tandem' + + # SUID chrome-sandbox for Electron 5+ + chmod 4755 '/opt/Tandem/chrome-sandbox' || true + + update-mime-database /usr/share/mime || true + update-desktop-database /usr/share/applications || true + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + + # Delete the link to the binary + rm -f '/usr/bin/tandem' + update-desktop-database -q +} |