[arch-commits] Commit in mutagen/repos (testing-any testing-any/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed Nov 2 21:35:09 UTC 2016


    Date: Wednesday, November 2, 2016 @ 21:35:09
  Author: arojas
Revision: 279781

archrelease: copy trunk to testing-any

Added:
  mutagen/repos/testing-any/
  mutagen/repos/testing-any/PKGBUILD
    (from rev 279780, mutagen/trunk/PKGBUILD)

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

Copied: mutagen/repos/testing-any/PKGBUILD (from rev 279780, mutagen/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2016-11-02 21:35:09 UTC (rev 279781)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=mutagen
+pkgname=('mutagen' 'python-mutagen')
+pkgver=1.35
+pkgrel=1
+arch=('any')
+url="https://github.com/quodlibet/mutagen"
+license=('GPL2')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest')
+source=($pkgname-$pkgver::"https://github.com/quodlibet/mutagen/archive/release-$pkgver.tar.gz")
+sha1sums=('ef07be960e63757d1129ff44b265f1db1b258bb7')
+validpgpkeys=('0EBF782C5D53F7E5FB02A66746BD761F7A49B0EC')
+
+prepare() {
+  cp -r ${pkgbase}-release-${pkgver} python-${pkgbase}-${pkgver}
+}
+
+check() {
+  cd ${pkgbase}-release-${pkgver}
+  LANG=en_US.UTF8 python2 setup.py test
+  cd ../python-${pkgbase}-${pkgver}
+  LANG=en_US.UTF8 python setup.py test
+}
+
+package_mutagen() {
+  pkgdesc="An audio metadata tag reader and writer"
+  depends=('python2')
+ 
+  cd ${pkgbase}-release-${pkgver}
+  python2 setup.py install --root="${pkgdir}"
+}
+
+package_python-mutagen() {
+  pkgdesc="An audio metadata tag reader and writer library for Python 3"
+  depends=('python')
+
+  cd python-${pkgbase}-${pkgver}
+  python setup.py install --root="${pkgdir}"
+  rm -r "${pkgdir}"/usr/{bin,share}
+}



More information about the arch-commits mailing list