aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: e93704fd08f93b501931b1073f9e67c9db253e7b (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
# Maintainer: Johannes Löthberg <johannes2kyriasis.com>

pkgname=python-pafy-git
pkgver=0.3.33.r0.gc20f6ba
pkgrel=1
pkgdesc="Python API for YouTube - Download videos and retrieve metadata from YouTube."
arch=('any')
url="http://np1.github.io/pafy"
license=('GPL3')
depends=('python')
conflicts=('python-pafy')
source=('git+https://github.com/np1/pafy.git')
md5sums=('SKIP')

pkgver() {
	cd pafy
	git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
package() {
	cd pafy
	python setup.py install --root="$pkgdir" --optimize=1
}

# vim: set ts=4 sts=4 sw=4 noet: