diff options
author | Julian Wolff | 2018-02-28 13:49:37 +0100 |
---|---|---|
committer | Julian Wolff | 2018-02-28 13:49:37 +0100 |
commit | 3140ec2c93d404dbfa26197bcd30f7a2a727606b (patch) | |
tree | b7f27a52e1b74271d96bb4a395091271fdb002b9 | |
download | aur-3140ec2c93d404dbfa26197bcd30f7a2a727606b.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1a77e6b06061 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +# Generated by mksrcinfo v8 +# Wed Feb 28 12:48:32 UTC 2018 +pkgbase = moc-mpris-git + pkgdesc = MPRIS2 support for local or remote instances of MOC - music on console + pkgver = 1.0.r3.ccfadf7 + pkgrel = 1 + url = https://github.com/progwolff/moc-mpris + arch = any + license = GPL + depends = python>=3.6 + depends = python-dbus + depends = python-musicbrainzngs + optdepends = moc: control a local instance of moc + optdepends = xterm: raise moc + provides = moc-mpris-git=${pkgver} + provides = moc-mpris=${pkgver} + conflicts = moc-mpris + source = git+https://github.com/progwolff/moc-mpris + md5sums = SKIP + +pkgname = moc-mpris-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7ff54607e099 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Julian Wolff <wolff@julianwolff.de> +pkgname=moc-mpris-git +pkgver=1.0.r3.ccfadf7 +pkgrel=1 +pkgdesc="MPRIS2 support for local or remote instances of MOC - music on console" +arch=(any) +url="https://github.com/progwolff/moc-mpris" +license=('GPL') +groups=() +depends=('python>=3.6' 'python-dbus' 'python-musicbrainzngs') +makedepends=() +checkdepends=() +optdepends=('moc: control a local instance of moc' 'xterm: raise moc') +provides=('moc-mpris-git=${pkgver}' 'moc-mpris=${pkgver}') +conflicts=('moc-mpris') +replaces=() +backup=() +options=() +#install= +#changelog= +source=("git+https://github.com/progwolff/moc-mpris") +noextract=() +md5sums=(SKIP) +validpgpkeys=() + +_gitroot="https://github.com/progwolff/moc-mpris" +_gitname=moc-mpris + +pkgver() { + cd "$_gitname" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "1.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +package() { + cd "${srcdir}/${_gitname}" + + mkdir -p "${pkgdir}/usr/lib/systemd/user/" + mkdir -p "${pkgdir}/usr/lib/moc-mpris/" + + install -D *.service "${pkgdir}/usr/lib/systemd/user/" + install -D *.sh "${pkgdir}/usr/lib/moc-mpris/" + install -D *.py "${pkgdir}/usr/lib/moc-mpris/" + + echo "Run \`systemctl --user enable --now moc_mpris.service\` to enable MPRIS2 support for a local instance of MOC" + echo "Run \`systemctl --user enable --now moc_mpris.service@'<ssh-user>@<ssh-address>'\` to enable MPRIS2 support for a remote instance of MOC. You will need to set up a password-less ssh connection for this to work." +} |