hex/packaging/aur/PKGBUILD

46 lines
1.5 KiB
Shell

# Maintainer: dax
#
# Generated from anomalyco/hex packaging/aur by scripts/release-aur.sh, which
# sets pkgver and the checksums for each release.
pkgname=hex-voice-bin
pkgver=@VERSION@
pkgrel=1
pkgdesc='Hex: local voice dictation (Linux beta)'
arch=('x86_64')
url='https://github.com/anomalyco/hex'
license=('MIT')
# Linked: alsa-lib, gcc-libs, glib2, glibc, vulkan-icd-loader. Loaded at
# runtime: the X11/Wayland/xkbcommon client libraries and OpenBLAS.
depends=(
'alsa-lib' 'curl' 'gcc-libs' 'glib2' 'glibc' 'libx11' 'libxcb' 'libxcursor'
'libxi' 'libxkbcommon' 'libxkbcommon-x11' 'openblas' 'vulkan-icd-loader'
'wayland'
)
optdepends=(
'wl-clipboard: paste on Wayland'
'wtype: paste on Wayland'
'vulkan-driver: GPU transcription'
'wireplumber: mute output while dictating (or libpulse for pactl)'
'xdg-utils: open links from voice commands'
)
provides=('hex-voice')
conflicts=('hex-voice')
options=('!strip' '!debug')
install=hex-voice-bin.install
source=(
"HEX-${pkgver}-x86_64-linux::https://github.com/anomalyco/hex/releases/download/app-v${pkgver}/HEX-${pkgver}-x86_64-linux"
'hex.desktop'
'hex.service'
'LICENSE'
)
sha256sums=('@SHA256@'
'@DESKTOP_SHA256@'
'@SERVICE_SHA256@'
'@LICENSE_SHA256@')
package() {
install -Dm755 "HEX-${pkgver}-x86_64-linux" "$pkgdir/usr/bin/hex"
install -Dm644 hex.desktop "$pkgdir/usr/share/applications/hex.desktop"
install -Dm644 hex.service "$pkgdir/usr/lib/systemd/user/hex.service"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}