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

David Runge dvzrv at archlinux.org
Wed Apr 29 23:47:14 UTC 2020


    Date: Wednesday, April 29, 2020 @ 23:47:14
  Author: dvzrv
Revision: 622339

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-29 23:47:07 UTC (rev 622338)
+++ PKGBUILD	2020-04-29 23:47:14 UTC (rev 622339)
@@ -1,38 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-_name=pymediainfo
-pkgname=python-pymediainfo
-pkgver=4.1
-pkgrel=3
-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=('08ffca0c3179aa6dff5b3007faaec1f1a2f372b2995824039021f41b2c772a2a13370c1dbd37d2408d023be497cff71dd6f46b09c8989f168976d75723cd7722')
-
-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}"
-}

Copied: python-pymediainfo/repos/community-any/PKGBUILD (from rev 622338, python-pymediainfo/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-29 23:47:14 UTC (rev 622339)
@@ -0,0 +1,44 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pymediainfo
+pkgname=python-pymediainfo
+pkgver=4.2.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=('33343838312ce240a23fa3856d808bf4b1346a1c65ed99c0405664aceaf452df610144114c228ad43e525f7abc9609420071bc6960f92b68ed7abe5dae8764aa')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  export PYTHONPATH="build:$PYTHONPATH"
+  pytest -v
+}
+
+package() {
+  cd "${pkgname}-${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