| 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. |
| 4 | pkgname=kvt-rusty-teams-bin |
| 5 | pkgver=0 |
| 6 | pkgrel=1 |
| 7 | _tag=v0 |
| 8 | pkgdesc='Native Microsoft Teams client in Rust (KVT build)' |
| 9 | arch=('x86_64') |
| 10 | url='https://git.kvt.nl/ict/rusty-teams' |
| 11 | license=('MIT') |
| 12 | depends=('glibc' 'gcc-libs' 'fontconfig' 'freetype2' 'libxkbcommon' 'libxkbcommon-x11' |
| 13 | 'libx11' 'libxcb' 'wayland' 'alsa-lib' 'libpulse' 'libpipewire' 'libva' 'glib2' 'hicolor-icon-theme') |
| 14 | provides=('rusty-teams') |
| 15 | conflicts=('rusty-teams' 'rusty-teams-bin' 'rusty-teams-git') |
| 16 | options=('!strip' '!debug') |
| 17 | source=("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") |
| 18 | sha256sums=('SKIP') |
| 19 | |
| 20 | package() { |
| 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 | } |