summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 11 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5ca8b2cfb79..74261c71118 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,28 @@
+# Contributor: alium
# Maintainer: Jozef Riha <jose1711 at gmail dot com>
pkgname=televize-git
pkgdesc="CLI aplication to watch Czech television streams"
-pkgver=r14.9b18d85
+pkgver=r46.06637c4
pkgrel=1
arch=('any')
url="https://github.com/ziima/televize"
license=('apache')
-depends=('python2' 'mplayer' 'curl' 'bash')
+depends=('python' 'python-requests' 'python-m3u8' 'python-lxml' 'python-docopt' 'python-iso8601')
+conflicts=('televize')
+optdepends=('mplayer: for MPlayer backend'
+'mpv: for MPV backend'
+'vlc: for VLC backend')
source=("${pkgname}"::'git+https://github.com/ziima/televize.git')
md5sums=('SKIP')
pkgver() {
- cd "$srcdir/${pkgname}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+cd "$srcdir/${pkgname}"
+printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
- cd ${srcdir}/${pkgname}
- sed -i 's%python %python2 /usr/bin/%' televize
- sed -i '1s/python/&2/' televize.py
- install -D -m755 ./televize $pkgdir/usr/bin/ct_televize
- install -D -m755 ./televize.py $pkgdir/usr/bin/televize.py
+cd ${srcdir}/${pkgname}
+python setup.py install --root="$pkgdir/" --prefix=/usr
}