summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJohannes Dewender2015-06-20 01:12:52 +0200
committerJohannes Dewender2015-06-20 01:12:52 +0200
commit2d7d791251c7b07cc4e2d45f4a434396f69effe7 (patch)
tree48643bdf48eaf0bbc16046998d323a1262532491 /PKGBUILD
parent9a3440e7fa74dbde5a5c1fc7fe239d5c596c62c3 (diff)
downloadaur-2d7d791251c7b07cc4e2d45f4a434396f69effe7.tar.gz
create split package for Python 2 and 3
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 11 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5f547a97ff7..97a99d398ef 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Contributor: Johannes Dewender arch at JonnyJD dot net
# Contributor: Adrian Sampson <adrian@radbox.org>
-pkgname=python-musicbrainzngs-git
+pkgname=('python-musicbrainzngs-git' 'python2-musicbrainzngs-git')
_name=musicbrainzngs
pkgver=0.5_86.g98b6885
pkgrel=1
@@ -9,7 +9,7 @@ pkgdesc="bindings for the MusicBrainz NGS web service (WS/2)"
url="http://python-musicbrainzngs.readthedocs.org/"
license="BSD"
arch=('any')
-makedepends=('git' 'python')
+makedepends=('git')
source=('git+https://github.com/alastair/python-musicbrainzngs.git')
md5sums=('SKIP')
@@ -23,7 +23,7 @@ check() {
python setup.py test
}
-package() {
+package_python-musicbrainzngs-git() {
depends=("python")
provides=("python-musicbrainzngs=$pkgver")
conflicts=("python-musicbrainzngs")
@@ -31,4 +31,12 @@ package() {
python setup.py install --root=$pkgdir
}
+package_python2-musicbrainzngs-git() {
+ depends=("python2")
+ provides=("python2-musicbrainzngs=$pkgver")
+ conflicts=("python2-musicbrainzngs")
+ cd "$srcdir/python-musicbrainzngs"
+ python2 setup.py install --root=$pkgdir
+}
+
# vim:set ts=2 sw=2 et: