summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Dewender2015-06-20 01:12:52 +0200
committerJohannes Dewender2015-06-20 01:12:52 +0200
commit2d7d791251c7b07cc4e2d45f4a434396f69effe7 (patch)
tree48643bdf48eaf0bbc16046998d323a1262532491
parent9a3440e7fa74dbde5a5c1fc7fe239d5c596c62c3 (diff)
downloadaur-2d7d791251c7b07cc4e2d45f4a434396f69effe7.tar.gz
create split package for Python 2 and 3
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD14
2 files changed, 16 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 41c431e5295..f548a98291a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,7 +6,6 @@ pkgbase = python-musicbrainzngs-git
arch = any
license = BSD
makedepends = git
- makedepends = python
source = git+https://github.com/alastair/python-musicbrainzngs.git
md5sums = SKIP
@@ -15,3 +14,8 @@ pkgname = python-musicbrainzngs-git
provides = python-musicbrainzngs=0.5_86.g98b6885
conflicts = python-musicbrainzngs
+pkgname = python2-musicbrainzngs-git
+ depends = python2
+ provides = python2-musicbrainzngs=0.5_86.g98b6885
+ conflicts = python2-musicbrainzngs
+
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: