summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14c2ad07977fa625b712a51d2c0661b51d78d826 (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: BasioMeusPuga <disgruntled.mob@gmail.com>

pkgname=twitchy-git
_pkgname=twitchy
pkgdesc="CLI livestreamer / streamlink wrapper for twitch.tv"
pkgver=r123.cd04489
pkgrel=1
arch=('i686' 'x86_64')
url="https://github.com/BasioMeusPuga/twitchy"
license=('GPL3')
provides=('twitchy')
conflicts=('twitchy')
depends=('python' 'streamlink' 'python-requests')
makedepends=('git')
optdepends=('livestreamer: alternate backend')
source=("git://github.com/basiomeuspuga/${_pkgname}.git")
md5sums=(SKIP)

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


package() {
 	mkdir -p ${pkgdir}/usr/share/twitchy/

	install -Dm 755 twitchy/alarm.mp3 $pkgdir/usr/share/twitchy/alarm.mp3
	install -Dm 755 twitchy/twitchy.py $pkgdir/usr/bin/twitchy
}