summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e23f352acf83e2860ba1473524407e226ecb6964 (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
# Maintainer: Loic Coyle <loic.coyle@hotmail.fr>

_pkgname=rofi-ttv
pkgname="${_pkgname}-git"
pkgver=r49.ec6c1d1
pkgrel=1
pkgdesc='A script that uses rofi, youtube-dl and mpv to view twitch streams.'
arch=('any')
url='https://github.com/loiccoyle/rofi-ttv'
license=('MIT')
depends=('curl' 'jq' 'rofi' 'youtube-dl' 'mpv' 'gnu-netcat')
makedepends=('git')
source=("${_pkgname}::git+https://github.com/loiccoyle/rofi-ttv.git")
md5sums=('SKIP')

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

package() {
    cd "${_pkgname}"
    install -D -m 755 -t "${pkgdir}/usr/bin/" rofi-ttv
    install -D -m 644 -t "${pkgdir}/usr/share/licenses/${_pkgname}/" LICENSE
}