summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 61ff62572eb8bb227a3943f96d79df74a6403ca9 (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: Giusy Margarita <kurmikon at libero dot it>

pkgname=mpv-acestream
pkgver=0.3
pkgrel=2
pkgdesc="Lua script that adds AceStream protocol handler to mpv player"
arch=("any")
url="https://github.com/Digitalone1/mpv-acestream"
license=("GPL3")
depends=(
    "acestream-engine: AceStream engine"
    "mpv: mpv player")
source=(
    "https://github.com/Digitalone1/mpv-acestream/archive/v$pkgver.tar.gz"
    "acestream.protocol")
install="$pkgname.install"
md5sums=(
    "f3dd26794a41070cf44f88fc43478f2a"
    "b3c9666c4e0aecd92f6fc208a2b3429e")

package() {
    cd $pkgname-$pkgver

    install -Dm755 "scripts/$pkgname.lua" "$pkgdir/usr/lib/mpv/$pkgname.lua"
    
    install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
    
    # Plasma 5 protocol file
    install -Dm644 "$srcdir/acestream.protocol" "$pkgdir/usr/share/kservices5/acestream.protocol"
}