beets-git/PKGBUILD
Frederik “Freso” S. Olesen fdf56d66af
Fix "mutagen" dependency.
For whatever reason base package name for "mutagen" refers to the
Python 2 version, with a "python-mutagen" for Python 3.
2017-01-11 01:41:22 +01:00

41 lines
1.1 KiB
Bash

# Maintainer: Adrian Sampson <adrian@radbox.org>
# Contributor: Johannes Löthberg <demizide@gmail.com>
pkgname=beets-python3-git
pkgver=1.4.3.r3.ga2d37dd5
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' 'beets-git')
conflicts=('beets' 'beets-git')
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
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}