summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c0e7d6ec9f0aa607e9858552e475009a12764e0 (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
38
# Maintainer: Hauke Rehfeld <aur@haukerehfeld.de>
_pkgname=whisper.cpp
pkgname=${_pkgname}-git
pkgver=5a5c5dd
pkgrel=1
pkgdesc="Port of OpenAI's Whisper model in C/C++"
arch=("i686" "x86_64")
url="https://github.com/ggerganov/whisper.cpp"
license=("MIT")

makedepends=("git" )
depends=()
conflicts=("${_pkgname}")
provides=()

source=("${pkgname}::git+https://github.com/ggerganov/whisper.cpp#branch=master")
sha1sums=('SKIP')


pkgver() {
  cd "$pkgname"
  git describe --long --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "$pkgname"
}

_BUILDDIR=build

build() {
  cd "$srcdir/$pkgname"
  make
}

package() {
  install -Dm755 "${srcdir}/$pkgname/main" "${pkgdir}/usr/bin/$_pkgname"
}