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

Maxime Gauduin alucryd at archlinux.org
Tue Jul 24 12:15:33 UTC 2018


    Date: Tuesday, July 24, 2018 @ 12:15:33
  Author: alucryd
Revision: 363289

upgpkg: python-pyacoustid 1.1.5-2

Modified:
  python-pyacoustid/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++------------------------
 1 file changed, 10 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-24 12:07:08 UTC (rev 363288)
+++ PKGBUILD	2018-07-24 12:15:33 UTC (rev 363289)
@@ -3,46 +3,32 @@
 # Contributor: Fernando Jiménez Solano <fjim at sdfeu.org>
 # Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
 
-pkgbase=python-pyacoustid
-pkgname=('python-pyacoustid' 'python2-pyacoustid')
+pkgname=python-pyacoustid
 pkgver=1.1.5
-pkgrel=1
+pkgrel=2
 pkgdesc='Bindings for Chromaprint acoustic fingerprinting and the Acoustid API'
 arch=('any')
 url='https://github.com/beetbox/pyacoustid'
 license=('MIT')
-depends=('chromaprint')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=("pyacoustid-${pkgver}.tar.gz::https://github.com/beetbox/pyacoustid/archive/v${pkgver}.tar.gz"
+depends=('chromaprint' 'python')
+makedepends=('git' 'python-setuptools')
+source=("git+https://github.com/beetbox/pyacoustid.git#tag=v${pkgver}"
         'https://raw.github.com/beetbox/beets/master/LICENSE')
-sha256sums=('614e350d62af87c7cbc62c0bcaed9fc8330879772d050d245b7bd86556fb1b3f'
+sha256sums=('SKIP'
             '69b9fa8fe9700714fc1f002aa6bfef097e5422372979195ab48956cd48e20aaf')
 
-prepare() {
-  cp -r {,python-}pyacoustid-${pkgver}
-  mv {,python2-}pyacoustid-${pkgver}
-}
 
 build() {
-  for py in python{,2}; do
-    pushd ${py}-pyacoustid-${pkgver}
-    ${py} setup.py build
-    popd
-  done
+  cd pyacoustid
+
+  python setup.py build
 }
 
 package_python-pyacoustid() {
-  cd python-pyacoustid-${pkgver}
+  cd pyacoustid
 
   python setup.py install --root="${pkgdir}" --optimize='1' --skip-build
   install -Dm 644 ../LICENSE -t "${pkgdir}"/usr/share/licenses/python-pyacoustid/
 }
 
-package_python2-pyacoustid() {
-  cd python2-pyacoustid-${pkgver}
-
-  python2 setup.py install --root="${pkgdir}" --optimize='1' --skip-build
-  install -Dm 644 ../LICENSE -t "${pkgdir}"/usr/share/licenses/python2-pyacoustid/
-}
-
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list