summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 913a07d7ccdea76e24a5cbed230043bd26189831 (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: Amro Emad <korialo001 at gmail dot com>

pkgname=mpv-twitch-chat-git
_pkgname=${pkgname%-git}
pkgver=r38.72d97a0
pkgrel=1
pkgdesc='Show Twitch chat messages as subtitles when watching Twitch VOD with mpv.'
arch=('any')
url="https://github.com/CrendKing/mpv-twitch-chat"
license=('MIT')
makedepends=('git')
source=("git+${url}")
sha256sums=('SKIP')

pkgver() {
    cd "$_pkgname"

    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    depends=(
      'mpv'
      'curl')

    cd "$_pkgname"

    install -Dm 644 "main.lua" -t "${pkgdir}/etc/mpv/scripts/${pkgname}/"
    install -Dm 644 "README.md" "screenshot.webp" -t "${pkgdir}/usr/share/doc/${pkgname}/"
    install -Dm 644 "LICENSE"* -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}