aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: 9affe684308fbf7893418c523c8c82e2555cc966 (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: Johannes Löthberg <johannes@kyriasis.com>

pkgname=mps-youtube-git
pkgver=git
pkgrel=1
pkgdesc="Terminal based YouTube jukebox with playlist management"
arch=('any')
url='https://github.com/np1/mps-youtube'
license=('GPL3')
depends=('python' 'python-pafy-git')
optdepends=('mpv: Alternative to mplayer for playback'
			'mplayer: Alternative to mpv for playback')
conflicts=('mps-youtube')
install=mps-youtube-git.install
source=('git+https://github.com/np1/mps-youtube.git')
md5sums=('SKIP')

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

package() {
	cd mps-youtube
	python setup.py install --root="$pkgdir" --optimize=1
}