blob: b4abb2b15811d9394f219303e3c02b0993eab984 (
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
39
40
41
42
43
44
|
# Maintainer: Mogeko <zhengjunyi@live.com>
pkgname=mpv-autosubsync-git
_pkgname=${pkgname%-git}
pkgver=r124.22cb928
pkgrel=2
pkgdesc='Automatic subtitle synchronization script for mpv media player'
arch=('any')
url='https://github.com/joaquintorres/autosubsync-mpv'
license=('MIT')
depends=(
'mpv'
'alass'
)
optdepends=('python-ffsubsync: yet another backend')
makedepends=('git')
provides=('mpv-autosubsync')
source=(
"$_pkgname::git+$url"
'autosubsync.conf'
)
install="$pkgname.install"
sha256sums=(
'SKIP'
'9b060797d6c96a1af50a83da1e5f68b6d80307cc06dcb7a963cb2e513d567b68'
)
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$_pkgname"
install -dm 755 "${pkgdir}/usr/share/mpv/scripts/autosubsync"
install -Dm644 {autosubsync,helpers,main,menu,subtitle}.lua \
-t "$pkgdir"/usr/share/mpv/scripts/autosubsync/
install -Dm644 "$srcdir/${source[1]}" \
-t "$pkgdir"/usr/share/mpv/script-opts/
install -Dm644 LICENSE \
-t "$pkgdir"/usr/share/licenses/"$pkgname"
}
|