summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c9a63e10dfc7625d61b3c9b03532b574532e26c (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
31
32
33
34
35
36
37
38
39
# Maintainer: teraflops < cprieto.ortiz@gmail.com >
# Packager: teraflops < cprieto.ortiz@gmail.com >

pkgname=gmusicproxy-git
_gitname=gmusicproxy
pkgver=1.0.1
pkgrel=1
pkgdesc="Let's stream Google Play Music using any media-player"
arch=('any')
url="https://github.com/diraimondo/gmusicproxy"
license=('GPL3')
depends=('python-netifaces' 'python-xdg' 'python-eyed3' 'python-daemon' 'python-gmusicapi' 'python-gpsoauth')
makedepends=('python-setuptools')
provides=('gmusicproxy')
conflicts=('gmusicproxy' 'gmusicproxy-stable')
source=("gmusicproxy::git+https://github.com/diraimondo/gmusicproxy.git"
'gmusicproxy.cfg.sample' 'gmusicproxy.user.service' 'gmusicproxy.system.service') 
sha256sums=('SKIP'
'e69f5e5fff155917621ee65d91adf943d3d133e1d771578d7176ba3649f01363'
'b575dcd3f2aa734718b6d3dbd487c5a7ec3ff946c4532e1d9b3fe5e8461b88b9'	
'35b09e3873980df0bdd37baa6694c1b219b24a7f3550a5630f453381976d0f48')
pkgver() {
	cd "$srcdir/$_gitname"
 	git describe --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

package() {
	cd "${srcdir}/${_gitname}"
	python2 setup.py install --root="$pkgdir" --optimize=1

	install -Dm644 "${srcdir}"/gmusicproxy.cfg.sample \
		"${pkgdir}"/etc/gmusicproxy.cfg.sample

	install -Dm644 "${srcdir}"/gmusicproxy.system.service \
		"${pkgdir}"/usr/lib/systemd/system/gmusicproxy.service

	install -Dm644 "${srcdir}"/gmusicproxy.user.service \
		"${pkgdir}"/usr/lib/systemd/user/gmusicproxy.service
}