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

Felix Yan felixonmars at archlinux.org
Sat Dec 24 11:21:49 UTC 2016


    Date: Saturday, December 24, 2016 @ 11:21:48
  Author: felixonmars
Revision: 201425

archrelease: copy trunk to community-staging-any

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

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

Copied: python-discid/repos/community-staging-any/PKGBUILD (from rev 201424, python-discid/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 11:21:48 UTC (rev 201425)
@@ -0,0 +1,35 @@
+# $Id$
+# Contributor: Johannes Dewender	 arch at JonnyJD dot net
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+
+pkgbase=python-discid
+pkgver=1.1.0
+pkgrel=4
+_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')
+source=("https://pypi.python.org/packages/source/d/$_pkgname/$_pkgname-$pkgver.tar.gz"{,.asc})
+sha1sums=('de2d657e42d281dad593e0673af6ba6039ef58bc' '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