BlueGit

ict rusty-teams

Files

rusty-teams / packaging / kvt / aur / PKGBUILD

PKGBUILD

PKGBUILD 1.5 KiB Download Raw
1# Template for the AUR package kvt-rusty-teams-bin. packaging/kvt/publish-aur.sh
2# fills pkgver, _tag and sha256sums from the release on git.kvt.nl and pushes it
3# with a generated .SRCINFO. Do not edit those three lines by hand in the AUR.
4pkgname=kvt-rusty-teams-bin
5pkgver=0
6pkgrel=1
7_tag=v0
8pkgdesc='Native Microsoft Teams client in Rust (KVT build)'
9arch=('x86_64')
10url='https://git.kvt.nl/ict/rusty-teams'
11license=('MIT')
12depends=('glibc' 'gcc-libs' 'fontconfig' 'freetype2' 'libxkbcommon' 'libxkbcommon-x11'
13 'libx11' 'libxcb' 'wayland' 'alsa-lib' 'libpulse' 'libpipewire' 'libva' 'glib2' 'hicolor-icon-theme')
14provides=('rusty-teams')
15conflicts=('rusty-teams' 'rusty-teams-bin' 'rusty-teams-git')
16options=('!strip' '!debug')
17source=("rusty-teams-${_tag#v}-linux-x86_64.tar.gz::https://git.kvt.nl/api/v1/projects/ict/rusty-teams/releases/${_tag}/assets/rusty-teams-${_tag#v}-linux-x86_64.tar.gz")
18sha256sums=('SKIP')
19
20package() {
21 cd "rusty-teams-${_tag#v}-linux-x86_64"
22 install -Dm755 bin/teams "$pkgdir/usr/bin/teams"
23 install -Dm644 share/applications/rusty-teams.desktop "$pkgdir/usr/share/applications/rusty-teams.desktop"
24 cp -a share/icons "$pkgdir/usr/share/"
25 if [[ -d share/metainfo ]]; then
26 cp -a share/metainfo "$pkgdir/usr/share/"
27 fi
28 install -Dm644 share/doc/rusty-teams/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
29 # The app never looks for updates when this file exists: pacman updates it.
30 install -Dm644 /dev/null "$pkgdir/usr/lib/rusty-teams/package-managed"
31}