summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7419d0f0034d227fc5e5bbb784b6123c8d1c659b (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
# Maintainer: Salamandar <felix@piedallu.me>
# Contributor: Bastien "neitsab" Traverse <firstname at lastname dot email>

pkgname=vlsub-git
pkgver=0.10.2.r26.g3d1998f
pkgrel=1
pkgdesc="VLC extension to download subtitles from opensubtitles.org"
arch=('any')
url="https://github.com/exebetche/${pkgname%-git}"
license=('GPL')
depends=('vlc')
makedepends=('git')
provides=('vlsub')
conflicts=('vlsub')
source=("git+$url.git")
sha256sums=('SKIP')

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

package() {
    cd "$srcdir/${pkgname%-git}"
    install -Dm644 vlsub.lua ${pkgdir}/usr/lib/vlc/lua/extensions/vlsub.lua
    for i in locale/*.xml; do
        install -Dm644 "$i" "${pkgdir}/usr/lib/vlc/lua/extensions/vlsub/$i"
    done
    install -Dm644 README.md "${pkgdir}/usr/share/${pkgname%-git}/README"
}