# Maintainer: Adrian Sampson # Contributor: Johannes Löthberg pkgname=beets-git pkgver=1.4.3.r29.g70fd6cb7 pkgrel=1 pkgdesc="Flexible music library manager and tagger - git version" arch=('any') url="http://beets.io/" license=('MIT') depends=('python-munkres' 'python-mutagen' 'python-setuptools' 'python-unidecode' 'python-musicbrainzngs' 'python-yaml' 'python-jellyfish' 'python-six') makedepends=('git') optdepends=('python-pyacoustid: acoustic fingerprinting' 'python-flask: web interface' 'python-gobject: BPD audio player plugin' 'python-pylast: lastgenre plugin') provides=('beets') conflicts=('beets') source=('git+https://github.com/beetbox/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 python setup.py build } package() { cd ${srcdir}/beets python setup.py install --root=${pkgdir} --optimize=1 --skip-build install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }