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

Antonio Rojas arojas at archlinux.org
Thu Dec 27 13:52:06 UTC 2018


    Date: Thursday, December 27, 2018 @ 13:52:05
  Author: arojas
Revision: 418497

extra2community: Moving mutagen from extra to community

Added:
  mutagen/
  mutagen/repos/
  mutagen/trunk/
  mutagen/trunk/PKGBUILD

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

Added: mutagen/trunk/PKGBUILD
===================================================================
--- mutagen/trunk/PKGBUILD	                        (rev 0)
+++ mutagen/trunk/PKGBUILD	2018-12-27 13:52:05 UTC (rev 418497)
@@ -0,0 +1,45 @@
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=mutagen
+pkgname=('mutagen' 'python-mutagen')
+pkgver=1.41.1
+pkgrel=1
+arch=('any')
+url="https://github.com/quodlibet/mutagen"
+license=('GPL2')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest' 'python-hypothesis' 'python2-hypothesis' 'python-pyflakes' 'python2-pyflakes'
+              'python-pycodestyle' 'python2-pycodestyle')
+source=($pkgbase-$pkgver.tar.gz::"https://github.com/quodlibet/mutagen/releases/download/release-$pkgver/$pkgbase-$pkgver.tar.gz"
+        $pkgbase-$pkgver.tar.gz.sig::"https://github.com/quodlibet/mutagen/releases/download/release-$pkgver/$pkgbase-$pkgver.tar.gz.sig")
+sha256sums=('2ea9c900a05fa7f5f4c5bd9fc1475d7d576532e13b2f79b694452b997ff67200'
+            'SKIP')
+validpgpkeys=('0EBF782C5D53F7E5FB02A66746BD761F7A49B0EC')
+
+prepare() {
+  cp -r ${pkgbase}-${pkgver} python-${pkgbase}-${pkgver}
+}
+
+check() {
+  cd ${pkgbase}-${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}-${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}
+}


Property changes on: mutagen/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list