[arch-commits] Commit in python2-pyacoustid/trunk (PKGBUILD)
Maxime Gauduin
alucryd at archlinux.org
Sat Jun 17 21:49:56 UTC 2017
Date: Saturday, June 17, 2017 @ 21:49:54
Author: alucryd
Revision: 237994
FS#54318: python-pyacoustid 1.1.5-1
Modified:
python2-pyacoustid/trunk/PKGBUILD
----------+
PKGBUILD | 43 ++++++++++++++++++++++++++++---------------
1 file changed, 28 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-06-17 21:49:52 UTC (rev 237993)
+++ PKGBUILD 2017-06-17 21:49:54 UTC (rev 237994)
@@ -3,33 +3,46 @@
# Contributor: Fernando Jiménez Solano <fjim at sdfeu.org>
# Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
-pkgname=python2-pyacoustid
-pkgver=1.1.4
+pkgbase=python-pyacoustid
+pkgname=('python-pyacoustid' 'python2-pyacoustid')
+pkgver=1.1.5
pkgrel=1
pkgdesc='Bindings for Chromaprint acoustic fingerprinting and the Acoustid API'
arch=('any')
-url='https://github.com/sampsyo/pyacoustid'
+url='https://github.com/beetbox/pyacoustid'
license=('MIT')
depends=('chromaprint')
-makedepends=('python2-setuptools')
-source=("pyacoustid-${pkgver}.tar.gz::https://github.com/sampsyo/pyacoustid/archive/v${pkgver}.tar.gz"
- 'https://raw.github.com/sampsyo/beets/master/LICENSE')
-sha256sums=('69e7e70d05a185e3602c7f752b2c9009c3caa17bbe7ddaed494d67fb63913b47'
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("pyacoustid-${pkgver}.tar.gz::https://github.com/beetbox/pyacoustid/archive/v${pkgver}.tar.gz"
+ 'https://raw.github.com/beetbox/beets/master/LICENSE')
+sha256sums=('614e350d62af87c7cbc62c0bcaed9fc8330879772d050d245b7bd86556fb1b3f'
'69b9fa8fe9700714fc1f002aa6bfef097e5422372979195ab48956cd48e20aaf')
+prepare() {
+ cp -r {,python-}pyacoustid-${pkgver}
+ mv {,python2-}pyacoustid-${pkgver}
+}
+
build() {
- cd pyacoustid-${pkgver}
+ for py in python{,2}; do
+ pushd ${py}-pyacoustid-${pkgver}
+ ${py} setup.py build
+ popd
+ done
+}
- python2 setup.py build
+package_python-pyacoustid() {
+ cd python-pyacoustid-${pkgver}
+
+ python setup.py install --root="${pkgdir}" --optimize='1' --skip-build
+ install -Dm 644 ../LICENSE -t "${pkgdir}"/usr/share/licenses/python-pyacoustid/
}
-package() {
- cd pyacoustid-${pkgver}
+package_python2-pyacoustid() {
+ cd python2-pyacoustid-${pkgver}
- python2 setup.py install --root="${pkgdir}" --optimize='1'
-
- install -dm 755 "${pkgdir}"/usr/share/licenses/python2-pyacoustid
- install -m 644 ../LICENSE "${pkgdir}"/usr/share/licenses/python2-pyacoustid/
+ 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