From 69f675311b462fbd2177e67893da196162742e3d Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Thu, 25 Jun 2015 21:19:44 -0700 Subject: [PATCH] Migrate from old AUR --- .SRCINFO | 27 +++++++++++++++++++++++++++ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..cb96402 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = beets-git + pkgdesc = Flexible music library manager and tagger - git version + pkgver = 1.3.11.r31.ga0ff517 + pkgrel = 1 + url = http://beets.radbox.org/ + arch = any + license = MIT + makedepends = git + depends = python2-munkres + depends = mutagen + depends = python2-setuptools + depends = python2-unidecode + depends = python2-musicbrainzngs + depends = python2-yaml + depends = python2-enum34 + depends = python2-jellyfish + optdepends = python2-pyacoustid: acoustic fingerprinting + optdepends = python2-flask: web interface + optdepends = gstreamer0.10-python: BPD audio player plugin + optdepends = python2-pylast: lastgenre plugin + provides = beets + conflicts = beets + source = git://github.com/sampsyo/beets.git + md5sums = SKIP + +pkgname = beets-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..7e0d739 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Adrian Sampson +# Contributor: Johannes Löthberg + +pkgname=beets-git +pkgver=1.3.11.r31.ga0ff517 +pkgrel=1 +pkgdesc="Flexible music library manager and tagger - git version" +arch=('any') +url="http://beets.radbox.org/" +license=('MIT') +depends=('python2-munkres' 'mutagen' + 'python2-setuptools' 'python2-unidecode' + 'python2-musicbrainzngs' 'python2-yaml' + 'python2-enum34' 'python2-jellyfish') +makedepends=('git') +optdepends=('python2-pyacoustid: acoustic fingerprinting' + 'python2-flask: web interface' + 'gstreamer0.10-python: BPD audio player plugin' + 'python2-pylast: lastgenre plugin') +provides=('beets') +conflicts=('beets') +source=('git://github.com/sampsyo/beets.git') +md5sums=('SKIP') + +pkgver() { + cd ${srcdir}/beets + git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' +} + +build() { + cd ${srcdir}/beets + python2 setup.py build +} + +package() { + cd ${srcdir}/beets + python2 setup.py install --root=${pkgdir} --optimize=1 + + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}