[arch-commits] Commit in python-discid/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Jun 30 18:56:31 UTC 2018


    Date: Saturday, June 30, 2018 @ 18:56:30
  Author: felixonmars
Revision: 349142

archrelease: copy trunk to community-staging-any

Added:
  python-discid/repos/community-staging-any/
  python-discid/repos/community-staging-any/PKGBUILD
    (from rev 349141, python-discid/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: python-discid/repos/community-staging-any/PKGBUILD (from rev 349141, python-discid/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 18:56:30 UTC (rev 349142)
@@ -0,0 +1,37 @@
+# $Id$
+# Contributor: Johannes Dewender	 arch at JonnyJD dot net
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+
+pkgbase=python-discid
+pkgver=1.1.1
+pkgrel=2
+_pkgname=discid
+pkgname=('python-discid' 'python2-discid')
+pkgdesc='Python binding of MusicBrainz libdiscid'
+url='https://python-discid.readthedocs.org/'
+license=('LGPL3')
+arch=('any')
+depends=('libdiscid')
+makedepends=('python' 'python2')
+validpgpkeys=('8BB230F6C5C308B31FE7C82568304838CC686607')
+_magic='a2/76/463785b1715b461c2fc0dad73b115e6ca061dbd768154b88242974d04a9f'
+source=("https://pypi.python.org/packages/$_magic/$_pkgname-$pkgver.tar.gz"{,.asc})
+sha256sums=('78a3bf6c8377fdbe3d85e914a209ff97aa43e35605779639847b510ced31f7b9'
+            'SKIP')
+
+check() {
+	cd "${srcdir}/${_pkgname}-${pkgver}"
+	python setup.py test
+}
+
+package_python-discid() {
+	depends+=('python')
+	cd "${srcdir}/${_pkgname}-${pkgver}"
+	python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-discid() {
+	depends+=('python2')
+	cd "${srcdir}/${_pkgname}-${pkgver}"
+	python2 setup.py install --root="${pkgdir}" --optimize=1
+}



More information about the arch-commits mailing list