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

David Runge dvzrv at archlinux.org
Tue Mar 5 13:36:41 UTC 2019


    Date: Tuesday, March 5, 2019 @ 13:36:39
  Author: dvzrv
Revision: 437718

archrelease: copy trunk to community-any

Added:
  python-pymediainfo/repos/community-any/PKGBUILD
    (from rev 437717, python-pymediainfo/trunk/PKGBUILD)
Deleted:
  python-pymediainfo/repos/community-any/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-05 13:36:21 UTC (rev 437717)
+++ PKGBUILD	2019-03-05 13:36:39 UTC (rev 437718)
@@ -1,60 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-_name=pymediainfo
-pkgbase=python-pymediainfo
-pkgname=('python-pymediainfo' 'python2-pymediainfo')
-pkgver=3.0
-pkgrel=1
-pkgdesc="A Python wrapper around the MediaInfo library"
-arch=('any')
-url="https://github.com/sbraz/pymediainfo/"
-license=('MIT')
-makedepends=('mediainfo' 'python-setuptools-scm' 'python2-setuptools-scm')
-checkdepends=('python-pytest' 'python-pytest-runner' 'python2-pytest' 'python2-pytest-runner')
-source=("${pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('b6828065f8d4907e94a299e4b3d550b1aad6dfa335b5eaae73e51a9b9052a8c494960b95473b49c10bb4407d3f48db07c2457b2937464317d64997c380571bcd')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "${pkgbase}-${pkgver}"
-}
-
-build() {
-  cd "${pkgbase}-${pkgver}"
-  python setup.py build
-  python2 setup.py build
-}
-
-check() {
-  cd "${pkgbase}-${pkgver}"
-  python setup.py test
-  python2 setup.py test
-}
-
-package_python-pymediainfo() {
-  depends=('libmediainfo' 'python')
-  cd "${pkgbase}-${pkgver}"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  # license
-  install -vDm 644 LICENSE \
-    -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  # docs
-  install -t "${pkgdir}/usr/share/doc/${pkgname}" \
-    -vDm 644 {AUTHORS,README.rst}
-}
-
-package_python2-pymediainfo() {
-  depends=('libmediainfo' 'python2')
-  cd "${pkgbase}-${pkgver}"
-  python2 setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  # license
-  install -vDm 644 LICENSE \
-    -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  # docs
-  install -t "${pkgdir}/usr/share/doc/${pkgname}" \
-    -vDm 644 {AUTHORS,README.rst}
-}

Copied: python-pymediainfo/repos/community-any/PKGBUILD (from rev 437717, python-pymediainfo/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-03-05 13:36:39 UTC (rev 437718)
@@ -0,0 +1,38 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=pymediainfo
+pkgname=python-pymediainfo
+pkgver=3.1
+pkgrel=1
+pkgdesc="A Python wrapper around the MediaInfo library"
+arch=('any')
+url="https://github.com/sbraz/pymediainfo/"
+license=('MIT')
+depends=('libmediainfo' 'python')
+makedepends=('mediainfo' 'python-setuptools-scm')
+checkdepends=('python-pytest' 'python-pytest-runner')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('a2fd04977236190c18e62da9ec0110d9de9f31acaae448b40ce56f66d925d9e0e0d2015f7824d359ebbd8ec749c0ff812ee4ef776333319827759c4c4fe708ab')
+
+build() {
+  cd "${_name}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${_name}-${pkgver}"
+  python setup.py test
+}
+
+package() {
+  cd "${_name}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  # license
+  install -vDm 644 LICENSE \
+    -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  # docs
+  install -vDm 644 {AUTHORS,README.rst} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}


More information about the arch-commits mailing list