diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..63534e8b6fee --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-stable-ts-git + pkgdesc = Stabilizing timestamps of OpenAI's Whisper outputs down to word-level + pkgver = r56.d22a75d + pkgrel = 1 + url = https://github.com/jianfch/stable-ts + arch = any + license = MIT + makedepends = git + makedepends = python-setuptools + depends = whisper + provides = python-stable-ts + conflicts = python-stable-ts + source = git+https://github.com/jianfch/stable-ts.git + b2sums = SKIP + +pkgname = python-stable-ts-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4c9ef3b2b1f5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: AtticFinder65536 <atticfinder -AT- rocklabs -DOT- xyz> + +pkgname=('python-stable-ts-git') +_gitname=('stable-ts') +pkgver=r56.d22a75d +pkgrel=1 +pkgdesc="Stabilizing timestamps of OpenAI's Whisper outputs down to word-level" +url="https://github.com/jianfch/stable-ts" +license=('MIT') +source=('git+https://github.com/jianfch/stable-ts.git') +b2sums=('SKIP') +arch=('any') +depends=('whisper') +makedepends=('git' 'python-setuptools') +provides=('python-stable-ts') +conflicts=('python-stable-ts') + +pkgver() { + cd "${_gitname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build(){ + cd "${_gitname}" + python setup.py build +} + +package(){ + cd "${_gitname}" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |