-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathPKGBUILD
28 lines (26 loc) · 790 Bytes
/
PKGBUILD
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
# Maintainer: Derin Yarsuvat <derin.aur at fea dot st>
pkgname=python-yams-git
pkgrel=1
pkgver=0.7.1.r3.g7bc7fa1
conflicts=('python-yams')
pkgdesc="A Last.FM scrobbler for MPD"
arch=('x86_64')
url="https://github.com/Berulacks/yams"
license=('GPL3')
depends=('python' 'mpd' 'python-pyaml' 'python-mpd2' 'python-requests' 'python-psutil')
makedepends=('python-setuptools')
source=("${pkgname}::git+https://github.com/Berulacks/yams")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
build() {
cd "$srcdir/$pkgname"
python setup.py build
}
package() {
cd "$srcdir/$pkgname"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -D "yams.service" "$pkgdir/usr/lib/systemd/user/yams.service"
}