blob: 0e47a9521dd18dadfcca3197c7144d898e6a0506 (
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
|
# Maintainer: Mogeko <zhengjunyi@live.com>
pkgname=mpv-autosub-git
_pkgname=${pkgname%-git}
pkgver=r52.3511535
pkgrel=3
pkgdesc="Fully automatic subtitle downloading for the MPV media player"
arch=(any)
url="https://github.com/davidde/mpv-autosub"
license=("MIT")
depends=(
"mpv"
"subliminal"
)
makedepends=("git")
provides=("mpv-autosub")
source=("$_pkgname::git+$url")
sha256sums=("SKIP")
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$_pkgname"
sed -i 's/\/home\/david\/.local/\/usr/g' autosub.lua
}
package() {
cd "$_pkgname"
install -Dm644 autosub.lua \
-t "$pkgdir"/usr/share/mpv/scripts
install -Dm644 LICENSE-MIT \
"$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}
|