summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ac63993398d301421394a39fc3ab9b13f86ed464 (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
# Maintainer: Josip Ponjavic <josipponjavic at gmail dot com>

pkgname=livedumper-git
pkgver=v0.3.0.r5.gf644128
pkgrel=1
pkgdesc="Livestreamer stream dumper"
arch=('any')
url="https://github.com/m45t3r/livedumper"
license=('custom: Simplified BSD')
depends=('livestreamer' 'python-appdirs' 'python-requests')
makedepends=('git' 'python-setuptools')
provides=('livedumper')
conflicts=('livedumper')
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd livedumper
  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

package() {
  cd livedumper
  python setup.py install --root="$pkgdir/" --optimize=1
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}