summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f72688943841634002de23014d6e4bf08e56af90 (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
# Maintainer: bashuser30 <bashuser30 at mailbox dot org>
pkgname=dl-stream-git
_pkgname=dl-stream
pkgver=95.7ceb51f
pkgrel=1
pkgdesc="Ad-free Twitch streams and videos via streamlink and ttvlol plugin (git version)"
arch=('any')
url="https://codeberg.org/bashuser30/$_pkgname"
source=("git+$url")
license=('GPL3')
depends=('curl' 'streamlink')
makedepends=('git')
optdepends=('chatterino: For opening chat'
            'ffmpeg: For conversion after download'
            'jq: For parsing api responses'
            'mpv: For watching content'
            'python-cloudscraper: Required for Kick plugin')
conflicts=('dl-stream')
provides=('dl-stream')
sha256sums=('SKIP')

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

package() {
	cd "$srcdir/$_pkgname"
	install -Dm755 "$_pkgname" "$pkgdir/usr/bin/$_pkgname"
}