summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 644c7efcf1c0ad44ca7f21a05c5ca19dddf955d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: kloogans <https://github.com/kloogans>
pkgname=yappie
pkgver=r3.e490525
pkgrel=1
pkgdesc='Voice dictation for Wayland with local whisper.cpp support'
arch=('x86_64')
url='https://github.com/kloogans/yappie-linux'
license=('MIT')
depends=('pipewire' 'curl' 'ydotool' 'wl-clipboard' 'libnotify')
optdepends=(
    'whisper.cpp: local on-device transcription'
    'whisper.cpp-cuda: local transcription with NVIDIA GPU'
    'whisper.cpp-vulkan: local transcription with Vulkan GPU'
    'hyprland: smart terminal paste detection'
    'sway: smart terminal paste detection'
)
makedepends=('git' 'meson' 'ninja')
install=yappie.install
source=("$pkgname::git+https://github.com/kloogans/yappie-linux.git")
sha256sums=('SKIP')

pkgver() {
    cd "$pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$pkgname"
    meson setup build --prefix=/usr --buildtype=release
    meson compile -C build
}

package() {
    cd "$pkgname"
    meson install -C build --destdir="$pkgdir"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}