summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Dewender2013-04-11 01:59:03 +0200
committerJohannes Dewender2013-04-11 01:59:03 +0200
commita3cb60f22a7ecaa4ca2008836e3f153e65eb7edb (patch)
tree794f3d04dd64d40aaf541e375ece59c8551cb8c0
parent1c80e4549bfa613b8e547cd54a03ee1d02c35793 (diff)
downloadaur-a3cb60f22a7ecaa4ca2008836e3f153e65eb7edb.tar.gz
python2-musicbrainzngs-git: update for pacman 4.1
-rw-r--r--.SRCINFO4
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD44
3 files changed, 19 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 321ba6b109b..6256c1e93a1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = python2-musicbrainzngs-git
pkgdesc = bindings for the MusicBrainz NGS service
- pkgver = 20130312
+ pkgver = 0.3_3.g41236df
pkgrel = 1
url = https://github.com/alastair/python-musicbrainz-ngs
arch = any
@@ -10,6 +10,8 @@ pkgbase = python2-musicbrainzngs-git
depends = python2
provides = python2-musicbrainzngs=0.3
conflicts = python2-musicbrainzngs
+ source = git+https://github.com/alastair/python-musicbrainz-ngs.git
+ md5sums = SKIP
pkgname = python2-musicbrainzngs-git
diff --git a/.gitignore b/.gitignore
index bd9b4a41adc..fd4fbafff54 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+/python-musicbrainz-ngs
*.tar.gz
*.tar.xz
*.tgz
diff --git a/PKGBUILD b/PKGBUILD
index 3b1a70361ea..8c42c3084ff 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,54 +1,40 @@
-# Contributor: Johannes Dewemdern arch at JonnyJD dot net
+# Contributor: Johannes Dewender arch at JonnyJD dot net
# Contributor: Adrian Sampson <adrian@radbox.org>
_python=python2
_name=musicbrainzngs
pkgname=$_python-$_name-git
-pkgver=20130312
+pkgver=0.3_3.g41236df
pkgrel=1
pkgdesc="bindings for the MusicBrainz NGS service"
+url="https://github.com/alastair/python-musicbrainz-ngs"
+license="BSD"
+arch=('any')
depends=("$_python")
makedepends=("$_python-distribute" 'git')
provides=("$_python-musicbrainzngs=0.3")
conflicts=("$_python-musicbrainzngs")
-arch=('any')
-source=()
-md5sums=()
-url="https://github.com/alastair/python-musicbrainz-ngs"
-license="BSD"
+source=('git+https://github.com/alastair/python-musicbrainz-ngs.git')
+md5sums=('SKIP')
-_gitroot=https://github.com/alastair/python-musicbrainz-ngs.git
-_gitname=python-musicbrainz-ngs
+pkgver() {
+ cd "$srcdir/python-musicbrainz-ngs"
+ git describe --tags | sed -e 's/^v//' -e 's/-/_/' -e 's/-/\./g'
+}
build() {
- cd "$srcdir"
- msg "Connecting to GIT server...."
-
- if [[ -d "$_gitname" ]]; then
- cd "$_gitname" && git pull origin
- msg "The local files are updated."
- else
- git clone "$_gitroot" "$_gitname"
- fi
-
- msg "GIT checkout done or server timeout"
- msg "Starting build..."
-
- rm -rf "$srcdir/$_gitname-build"
- git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
- cd "$srcdir/$_gitname-build"
-
- $_python setup.py build || return 1
+ cd "$srcdir/python-musicbrainz-ngs"
+ $_python setup.py build
}
check() {
- cd "$srcdir/$_gitname-build"
+ cd "$srcdir/python-musicbrainz-ngs"
$_python setup.py test
}
package() {
- cd "$srcdir/$_gitname-build"
+ cd "$srcdir/python-musicbrainz-ngs"
$_python setup.py install --root=$pkgdir
}