upgpkg: mpdrandom-git 1.3.0.r4.gacc37ed-2
add system systemd unit
This commit is contained in:
parent
ce05829a57
commit
7626a2d506
4 changed files with 26 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
pkgbase = mpdrandom-git
|
||||
pkgdesc = mpd albums randomizing script
|
||||
pkgver = 1.3.0.r2.gf96680a
|
||||
pkgrel = 1
|
||||
pkgver = 1.3.0.r4.gacc37ed
|
||||
pkgrel = 2
|
||||
url = https://github.com/axujen/mpdrandom
|
||||
arch = any
|
||||
license = GPL3
|
||||
|
@ -9,10 +9,13 @@ pkgbase = mpdrandom-git
|
|||
makedepends = python-setuptools
|
||||
depends = python
|
||||
depends = python-mpd2
|
||||
optdepends = mpd: provides mpd user for system unit
|
||||
provides = mpdrandom
|
||||
source = git+https://github.com/axujen/mpdrandom
|
||||
source = mpdrandom.service
|
||||
source = mpdrandom-user.service
|
||||
source = mpdrandom-system.service
|
||||
sha1sums = SKIP
|
||||
sha1sums = 155133e127d3d935d339cff2265a5f728a4ef0b1
|
||||
sha1sums = 2728b8b70264c98b763050953d46ce3680d7791d
|
||||
|
||||
pkgname = mpdrandom-git
|
||||
|
|
|
@ -1,20 +1,24 @@
|
|||
# Author: Axujen <axujen@gmail.com>
|
||||
# Maintainer: ZaZam <zazaamm at gmail dot com>
|
||||
# Co-Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
||||
|
||||
_gitauthor=axujen
|
||||
_gitname=mpdrandom
|
||||
pkgname=mpdrandom-git
|
||||
pkgver=1.3.0.r2.gf96680a
|
||||
pkgrel=1
|
||||
pkgver=1.3.0.r4.gacc37ed
|
||||
pkgrel=2
|
||||
pkgdesc="mpd albums randomizing script"
|
||||
arch=('any')
|
||||
url="https://github.com/$_gitauthor/$_gitname"
|
||||
license=('GPL3')
|
||||
depends=('python' 'python-mpd2')
|
||||
makedepends=('git' 'python-setuptools')
|
||||
optdepends=('mpd: provides mpd user for system unit')
|
||||
provides=('mpdrandom')
|
||||
source=("git+https://github.com/$_gitauthor/$_gitname" 'mpdrandom.service')
|
||||
sha1sums=('SKIP' '155133e127d3d935d339cff2265a5f728a4ef0b1')
|
||||
source=("git+https://github.com/$_gitauthor/$_gitname" 'mpdrandom-user.service' 'mpdrandom-system.service')
|
||||
sha1sums=('SKIP'
|
||||
'155133e127d3d935d339cff2265a5f728a4ef0b1'
|
||||
'2728b8b70264c98b763050953d46ce3680d7791d')
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/$_gitname"
|
||||
|
@ -30,7 +34,8 @@ package() {
|
|||
cd "$srcdir/$_gitname"
|
||||
python setup.py install --root="$pkgdir" --optimize=1
|
||||
|
||||
install -Dm644 "$srcdir/mpdrandom.service" "$pkgdir/usr/lib/systemd/user/mpdrandom.service"
|
||||
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"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
|
10
mpdrandom-git/mpdrandom-system.service
Normal file
10
mpdrandom-git/mpdrandom-system.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Play a random album in mpd
|
||||
After=mpd.service
|
||||
|
||||
[Service]
|
||||
User=mpd
|
||||
ExecStart=/usr/bin/mpdrandom -d -l
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue