mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
* Drop glib/gio and tray-icon: Rune tray and file dialogs, zbus for the portal and MPRIS * Drop glib from packaging, Nix, CI and docs; Rune tray and dialogs in the docs * fmt; Nix hash for Rune 07520d0
53 lines
1.9 KiB
Shell
53 lines
1.9 KiB
Shell
# Maintainer: dax
|
|
#
|
|
# Not a prebuilt of extra/hex (the hex dump tool, which installs /usr/bin/hx):
|
|
# this is the Hex voice dictation app, so it neither provides nor conflicts
|
|
# with it.
|
|
#
|
|
# Generated from anomalyco/hex packaging/aur by scripts/release-aur.sh, which
|
|
# sets pkgver, the release service's linux-x64 and linux-arm64 file URLs, and
|
|
# the checksums for each release.
|
|
pkgname=hex-bin
|
|
pkgver=@VERSION@
|
|
pkgrel=1
|
|
pkgdesc='Hex voice dictation app by Anomaly: hold a key, speak, and it types (Linux beta; not the hex dump tool)'
|
|
arch=('x86_64' 'aarch64')
|
|
url='https://github.com/anomalyco/hex'
|
|
license=('MIT')
|
|
# Linked: alsa-lib, gcc-libs, glibc, vulkan-icd-loader. Loaded at
|
|
# runtime: the X11/Wayland/xkbcommon client libraries and OpenBLAS.
|
|
depends=(
|
|
'alsa-lib' 'curl' 'gcc-libs' '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'
|
|
)
|
|
options=('!strip' '!debug')
|
|
install=hex-bin.install
|
|
source=(
|
|
'hex.desktop'
|
|
'hex.service'
|
|
'LICENSE'
|
|
)
|
|
source_x86_64=("hex-${pkgver}-linux-x64::@URL_X64@")
|
|
source_aarch64=("hex-${pkgver}-linux-arm64::@URL_ARM64@")
|
|
sha256sums=('@DESKTOP_SHA256@'
|
|
'@SERVICE_SHA256@'
|
|
'@LICENSE_SHA256@')
|
|
sha256sums_x86_64=('@SHA256_X64@')
|
|
sha256sums_aarch64=('@SHA256_ARM64@')
|
|
|
|
package() {
|
|
local target=x64
|
|
[ "$CARCH" = aarch64 ] && target=arm64
|
|
install -Dm755 "hex-${pkgver}-linux-${target}" "$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"
|
|
}
|