summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 861bdbd7c8633828ddb7e57faec5cabe0b92f524 (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: Julian Daube <joposter at gmail dot com>
# Contributer: Mikkel Oscar Lyderik <mikkeloscar at gmail dot com>

pkgname=python2-pafy-git
_pkgname=python2-pafy
pkgver=v0.5.4r22.g0e315a4
pkgrel=1
pkgdesc="Python API for YouTube"
url='https://pypi.org/project/pafy/'
arch=('any')
license=('GPL3')
provides=('python2-pafy')

makedepends=('git' 'python2-setuptools')
depends=('python2' 'python2-youtube-dl')
conflicts=('')

source=("$_pkgname::git+https://github.com/mps-youtube/pafy.git")
md5sums=('SKIP')

pkgver() {
	cd "$_pkgname" &&
  	git describe --long --tags | sed 's/\(-\+\)/r/;s/-/./g'
}

package() {
	cd "$_pkgname"
	python2 setup.py install --root="$pkgdir" --optimize=1
	rm -r "$pkgdir/usr/bin"
}