mirror of
https://github.com/archlinux/aur.git
synced 2026-03-05 20:32:40 +01:00
34 lines
878 B
Bash
34 lines
878 B
Bash
# Maintainer: Johannes Dewender arch at JonnyJD dot net
|
|
pkgname=('python-discid' 'python2-discid')
|
|
_pkgname=discid
|
|
pkgver=1.1.0
|
|
pkgrel=2
|
|
pkgdesc="Python binding of MusicBrainz libdiscid (Picard optdep)"
|
|
arch=('any')
|
|
url="https://python-discid.readthedocs.org/"
|
|
license=('LGPL3')
|
|
depends=('libdiscid>=0.2.2')
|
|
makedepends=()
|
|
conflicts=()
|
|
options=(!emptydirs)
|
|
source=(http://pypi.python.org/packages/source/d/$_pkgname/$_pkgname-$pkgver.tar.gz)
|
|
md5sums=('2ad2141452dd10b03ad96ccdad075235')
|
|
|
|
check() {
|
|
cd "$srcdir/$_pkgname-$pkgver"
|
|
python setup.py test
|
|
}
|
|
|
|
package_python-discid() {
|
|
depends+=('python>=3.1')
|
|
cd "$srcdir/$_pkgname-$pkgver"
|
|
python setup.py install --root="$pkgdir/" --optimize=1
|
|
}
|
|
|
|
package_python2-discid() {
|
|
depends+=('python2>=2.6')
|
|
cd "$srcdir/$_pkgname-$pkgver"
|
|
python2 setup.py install --root="$pkgdir/" --optimize=1
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|