[arch-commits] Commit in python-musicbrainzngs/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Tue Dec 10 18:42:00 UTC 2019


    Date: Tuesday, December 10, 2019 @ 18:42:00
  Author: alucryd
Revision: 536552

upgpkg: python-musicbrainzngs 0.6-6

Modified:
  python-musicbrainzngs/trunk/PKGBUILD

----------+
 PKGBUILD |   54 +++++++++++++++++++++++-------------------------------
 1 file changed, 23 insertions(+), 31 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-10 18:32:38 UTC (rev 536551)
+++ PKGBUILD	2019-12-10 18:42:00 UTC (rev 536552)
@@ -1,47 +1,39 @@
 # Maintainer: Maxime Gauduin <alucryd at archlinux.org>
 # Contributor: Adrian Sampson <adrian at radbox.org>
 
-pkgbase=python-musicbrainzngs
-pkgname=('python-musicbrainzngs' 'python2-musicbrainzngs')
+pkgname=python-musicbrainzngs
 pkgver=0.6
-pkgrel=5
+pkgrel=6
 pkgdesc="Python bindings for Musicbrainz' NGS webservice"
-arch=('any')
-url="https://github.com/alastair/python-musicbrainzngs"
-license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=("python-musicbrainzngs-${pkgver}.tar.gz::https://github.com/alastair/python-musicbrainzngs/archive/v${pkgver}.tar.gz")
-sha256sums=('ec447bcab906fe7c4dbd714a1dff1b00adcd20d0011968df1a740e6b1fb09cb5')
+arch=(any)
+url=https://github.com/alastair/python-musicbrainzngs
+license=(BSD)
+depends=(python)
+makedepends=(
+  git
+  python-setuptools
+)
+source=(git+https://github.com/alastair/python-musicbrainzngs.git#tag=f6e3fe2687e81e4c71c474db51e169889d6aac75)
+sha256sums=(SKIP)
 
-prepare() {
-  cp -r python{,2}-musicbrainzngs-${pkgver}
+pkgver() {
+  cd python-musicbrainzngs
+
+  git describe --tags | sed 's/^v//'
 }
+
 build() {
-  for py in python{,2}; do
-    pushd ${py}-musicbrainzngs-${pkgver}
-    ${py} setup.py build
-    popd
-  done
+  cd python-musicbrainzngs
+
+  python setup.py build
 }
 
-package_python-musicbrainzngs() {
-  depends=('python')
+package() {
+  cd python-musicbrainzngs
 
-  cd python-musicbrainzngs-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1
 
-  python setup.py install --root="${pkgdir}" --optimize='1'
-
   install -Dm 644 COPYING -t "${pkgdir}"/usr/share/licenses/python-musicbrainzngs/
 }
 
-package_python2-musicbrainzngs() {
-  depends=('python2')
-
-  cd python2-musicbrainzngs-${pkgver}
-
-  python2 setup.py install --root="${pkgdir}" --optimize='1'
-
-  install -Dm 644 COPYING -t "${pkgdir}"/usr/share/licenses/python2-musicbrainzngs/
-}
-
 # vim: ts=2 sw=2 et:


More information about the arch-commits mailing list