summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJohannes Dewender2013-04-11 01:59:03 +0200
committerJohannes Dewender2013-04-11 01:59:03 +0200
commita3cb60f22a7ecaa4ca2008836e3f153e65eb7edb (patch)
tree794f3d04dd64d40aaf541e375ece59c8551cb8c0 /PKGBUILD
parent1c80e4549bfa613b8e547cd54a03ee1d02c35793 (diff)
downloadaur-a3cb60f22a7ecaa4ca2008836e3f153e65eb7edb.tar.gz
python2-musicbrainzngs-git: update for pacman 4.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD44
1 files changed, 15 insertions, 29 deletions
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
}