Add 'mpdrandom-git/' from commit 'f0c1cb4fdfc0c869bc90e5e926fe722560ebf319'
git-subtree-dir: mpdrandom-git git-subtree-mainline:cad1e3fb14
git-subtree-split:f0c1cb4fdf
This commit is contained in:
commit
b25730c27a
4 changed files with 71 additions and 0 deletions
18
mpdrandom-git/.SRCINFO
Normal file
18
mpdrandom-git/.SRCINFO
Normal file
|
@ -0,0 +1,18 @@
|
|||
pkgbase = mpdrandom-git
|
||||
pkgdesc = mpd albums randomizing script
|
||||
pkgver = 1.3.0.r2.gf96680a
|
||||
pkgrel = 1
|
||||
url = https://github.com/axujen/mpdrandom
|
||||
arch = any
|
||||
license = GPL3
|
||||
makedepends = git
|
||||
makedepends = python-setuptools
|
||||
depends = python
|
||||
depends = python-mpd2
|
||||
provides = mpdrandom
|
||||
source = git+https://github.com/axujen/mpdrandom
|
||||
source = mpdrandom.service
|
||||
sha1sums = SKIP
|
||||
sha1sums = 155133e127d3d935d339cff2265a5f728a4ef0b1
|
||||
|
||||
pkgname = mpdrandom-git
|
8
mpdrandom-git/.gitignore
vendored
Normal file
8
mpdrandom-git/.gitignore
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
*~
|
||||
|
||||
pkg/
|
||||
src/
|
||||
|
||||
*.tar*
|
||||
|
||||
mpdrandom/
|
36
mpdrandom-git/PKGBUILD
Normal file
36
mpdrandom-git/PKGBUILD
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Author: Axujen <axujen@gmail.com>
|
||||
# Maintainer: ZaZam <zazaamm at gmail dot com>
|
||||
|
||||
_gitauthor=axujen
|
||||
_gitname=mpdrandom
|
||||
pkgname=mpdrandom-git
|
||||
pkgver=1.3.0.r2.gf96680a
|
||||
pkgrel=1
|
||||
pkgdesc="mpd albums randomizing script"
|
||||
arch=('any')
|
||||
url="https://github.com/$_gitauthor/$_gitname"
|
||||
license=('GPL3')
|
||||
depends=('python' 'python-mpd2')
|
||||
makedepends=('git' 'python-setuptools')
|
||||
provides=('mpdrandom')
|
||||
source=("git+https://github.com/$_gitauthor/$_gitname" 'mpdrandom.service')
|
||||
sha1sums=('SKIP' '155133e127d3d935d339cff2265a5f728a4ef0b1')
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/$_gitname"
|
||||
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$_gitname"
|
||||
python setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_gitname"
|
||||
python setup.py install --root="$pkgdir" --optimize=1
|
||||
|
||||
install -Dm644 "$srcdir/mpdrandom.service" "$pkgdir/usr/lib/systemd/user/mpdrandom.service"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
9
mpdrandom-git/mpdrandom.service
Normal file
9
mpdrandom-git/mpdrandom.service
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Play a random album in mpd
|
||||
After=mpd.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/mpdrandom -d
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Reference in a new issue