[arch-commits] Commit in python-logutils/repos (community-any community-any/PKGBUILD)

Thore Bödecker foxxx0 at archlinux.org
Tue Jul 24 09:21:41 UTC 2018


    Date: Tuesday, July 24, 2018 @ 09:21:40
  Author: foxxx0
Revision: 363274

archrelease: copy trunk to community-any

Added:
  python-logutils/repos/community-any/
  python-logutils/repos/community-any/PKGBUILD
    (from rev 363273, python-logutils/trunk/PKGBUILD)

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

Copied: python-logutils/repos/community-any/PKGBUILD (from rev 363273, python-logutils/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-07-24 09:21:40 UTC (rev 363274)
@@ -0,0 +1,38 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Donald Webster <fryfrog at gmail.com>
+pkgbase='python-logutils'
+_pkgbase="${pkgbase#python-}"
+pkgname=('python-logutils' 'python2-logutils')
+pkgver=0.3.5
+pkgrel=2
+pkgdesc='Python module to parse metadata in video files.'
+arch=('any')
+url='https://bitbucket.org/vinay.sajip/logutils/'
+license=('LGPL')
+# makedepends=('python2-distribute' 'python2-setuptools')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.python.org/packages/source/l/logutils/logutils-${pkgver}.tar.gz")
+sha512sums=('0194bf4f01e7a29d4211495dc5fead9d4bd5bc1b791d25ff38ad28960a229a9bcdbaa7e6d3b5a4105eef6c9aa159459d6529c2615df113e7ec1ae93aac5cce6c')
+
+prepare(){
+  cp -r "${srcdir}/${_pkgbase}-${pkgver}" "${srcdir}/${_pkgbase}-${pkgver}-py2"
+}
+
+check() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  python ./setup.py test
+  cd "${srcdir}/${_pkgbase}-${pkgver}-py2"
+  python2 ./setup.py test
+}
+
+package_python-logutils() {
+  depends=('python')
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  python ./setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-logutils() {
+  depends=('python2')
+  cd "${srcdir}/${_pkgbase}-${pkgver}-py2"
+  python2 ./setup.py install --root="$pkgdir/" --optimize=1
+}



More information about the arch-commits mailing list