2015-11-01 04:12:07 +01:00
|
|
|
# Author: Axujen <axujen@gmail.com>
|
|
|
|
# Maintainer: qlonik <volodin.n at gmail dot com>
|
|
|
|
|
|
|
|
_gitauthor=axujen
|
|
|
|
_gitname=mpdrandom
|
|
|
|
pkgname=mpdrandom-git
|
2018-10-29 18:51:07 +01:00
|
|
|
pkgver=1.1.2.r2.g8565ff8
|
|
|
|
pkgrel=1
|
2015-11-01 04:12:07 +01:00
|
|
|
pkgdesc="mpd albums randomizing script"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/$_gitauthor/$_gitname"
|
|
|
|
license=('unknown')
|
2018-10-29 18:51:07 +01:00
|
|
|
depends=('python2' 'python2-mpd2')
|
2015-11-01 04:12:07 +01:00
|
|
|
makedepends=('git')
|
|
|
|
provides=('mpdrandom')
|
2018-10-29 18:51:07 +01:00
|
|
|
source=("git+https://github.com/$_gitauthor/$_gitname" 'mpdrandom.service')
|
2015-11-01 04:31:41 +01:00
|
|
|
md5sums=('SKIP' '6a7b6b63bb1ce777372deac19f420b2e')
|
2015-11-01 04:12:07 +01:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$srcdir/$_gitname"
|
|
|
|
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$_gitname"
|
2018-10-29 18:51:07 +01:00
|
|
|
python2 setup.py build
|
2015-11-01 04:12:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$_gitname"
|
2018-10-29 18:51:07 +01:00
|
|
|
python2 setup.py install --prefix="$pkgdir/usr"
|
2015-11-01 04:31:41 +01:00
|
|
|
|
|
|
|
install -Dm644 "$srcdir/mpdrandom.service" "$pkgdir/usr/lib/systemd/user/mpdrandom.service"
|
2015-11-01 04:12:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|