2015-11-01 04:12:07 +01:00
|
|
|
# Author: Axujen <axujen@gmail.com>
|
2021-02-28 07:18:50 +01:00
|
|
|
# Maintainer: ZaZam <zazaamm at gmail dot com>
|
2021-09-02 16:06:19 +02:00
|
|
|
# Co-Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
2015-11-01 04:12:07 +01:00
|
|
|
|
|
|
|
_gitauthor=axujen
|
|
|
|
_gitname=mpdrandom
|
|
|
|
pkgname=mpdrandom-git
|
2021-09-02 16:06:19 +02:00
|
|
|
pkgver=1.3.0.r4.gacc37ed
|
|
|
|
pkgrel=2
|
2015-11-01 04:12:07 +01:00
|
|
|
pkgdesc="mpd albums randomizing script"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/$_gitauthor/$_gitname"
|
2021-02-28 07:21:39 +01:00
|
|
|
license=('GPL3')
|
2021-02-28 07:18:50 +01:00
|
|
|
depends=('python' 'python-mpd2')
|
2021-07-28 16:24:17 +02:00
|
|
|
makedepends=('git' 'python-setuptools')
|
2021-09-02 16:06:19 +02:00
|
|
|
optdepends=('mpd: provides mpd user for system unit')
|
2015-11-01 04:12:07 +01:00
|
|
|
provides=('mpdrandom')
|
2021-09-02 16:06:19 +02:00
|
|
|
source=("git+https://github.com/$_gitauthor/$_gitname" 'mpdrandom-user.service' 'mpdrandom-system.service')
|
|
|
|
sha1sums=('SKIP'
|
|
|
|
'155133e127d3d935d339cff2265a5f728a4ef0b1'
|
|
|
|
'2728b8b70264c98b763050953d46ce3680d7791d')
|
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"
|
2021-02-28 07:18:50 +01:00
|
|
|
python setup.py build
|
2015-11-01 04:12:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$_gitname"
|
2021-07-28 16:24:17 +02:00
|
|
|
python setup.py install --root="$pkgdir" --optimize=1
|
2015-11-01 04:31:41 +01:00
|
|
|
|
2021-09-02 16:06:19 +02:00
|
|
|
install -Dm644 "$srcdir/mpdrandom-user.service" "$pkgdir/usr/lib/systemd/user/mpdrandom.service"
|
|
|
|
install -Dm644 "$srcdir/mpdrandom-system.service" "$pkgdir/usr/lib/systemd/system/mpdrandom.service"
|
2015-11-01 04:12:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|