diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c3327e5beb44 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = whisper.cpp-git + pkgdesc = Port of OpenAI's Whisper model in C/C++ + pkgver = 5a5c5dd + pkgrel = 1 + url = https://github.com/ggerganov/whisper.cpp + arch = i686 + arch = x86_64 + license = GPLv3 + makedepends = git + conflicts = whisper.cpp + source = whisper.cpp-git::git+https://github.com/ggerganov/whisper.cpp#branch=master + sha1sums = SKIP + +pkgname = whisper.cpp-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5c0e7d6ec9f0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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" +} |