From eac6f52317b13c699c770fcd90bf0ca6cc1eb7eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikita=20Volodin=20=5B=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0?= =?UTF-8?q?=20=D0=92=D0=BE=D0=BB=D0=BE=D0=B4=D0=B8=D0=BD=5D?= Date: Sun, 1 Nov 2015 00:12:07 -0300 Subject: [PATCH] feat(mpdrandom-git): initial release of mpdrandom --- .SRCINFO | 16 ++++++++++++++++ .gitignore | 8 ++++++++ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..6f00f19 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = mpdrandom-git + pkgdesc = mpd albums randomizing script + pkgver = 1.1.r5.geb67e9a + pkgrel = 1 + url = https://github.com/axujen/mpdrandom + arch = any + license = unknown + makedepends = git + depends = python + depends = python-mpd2 + provides = mpdrandom + source = git+https://github.com/axujen/mpdrandom + md5sums = SKIP + +pkgname = mpdrandom-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..54e5e01 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +*~ + +pkg/ +src/ + +*.tar* + +mpdrandom/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..aad0f96 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Author: Axujen +# Maintainer: qlonik + +_gitauthor=axujen +_gitname=mpdrandom +pkgname=mpdrandom-git +pkgver=1.1.r5.geb67e9a +pkgrel=1 +pkgdesc="mpd albums randomizing script" +arch=('any') +url="https://github.com/$_gitauthor/$_gitname" +license=('unknown') +depends=('python' 'python-mpd2') +makedepends=('git') +provides=('mpdrandom') +source=('git+https://github.com/axujen/mpdrandom') +md5sums=('SKIP') + +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 --prefix="$pkgdir/usr" +} + +# vim:set ts=2 sw=2 et: