summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d18a5101b72439323fc9ec88836d6c1ef491c9e8 (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
# Maintainer: Mogeko <zhengjunyi@live.com>

pkgname=alass
pkgver=2.0.0
pkgrel=1
pkgdesc="Automatic Language-Agnostic Subtitle Synchronization"
arch=('x86_64')
url='https://github.com/kaegi/alass'
license=('GPL3')
depends=('ffmpeg')
makedepends=('cargo')
provides=("$pkgname")
source=("$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('ce88f92c7a427b623edcabb1b64e80be70cca2777f3da4b96702820a6cdf1e26')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  cargo build --release
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  install -Dm755 target/release/alass-cli "${pkgdir}/usr/bin/alass"
  install -Dm644 LICENSE "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
}