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

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

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

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