summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 614e54916e6449c175029689e3598bb01c3d712a (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
# Maintainer: robertfoster

pkgname=shisper-git
pkgver=0.2.4.r0.gc104273
pkgrel=1
pkgdesc="A quick & dirty script to generate subtitles and transcriptions for your multimedia files using ggerganov/whisper.cpp"
arch=(any)
url="https://github.com/M0Rf30/shisper"
license=('GPL3')
depends=(
  'ffmpeg'
  'mpv'
  'whisper.cpp'
)
makedepends=('git')
conflicts=("${pkgname%%-git}")
provides=("${pkgname%%-git}")
backup=('etc/shisper/config.ini')
source=("${pkgname%%-git}::git+${url}")

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

package() {
  cd "${srcdir}/${pkgname%%-git}"
  install -Dm755 "${pkgname%%-git}" \
    -t "${pkgdir}/usr/bin/"
}

sha256sums=('SKIP')