[arch-commits] Commit in python-pymediainfo/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Thu Nov 8 18:04:11 UTC 2018


    Date: Thursday, November 8, 2018 @ 18:04:11
  Author: dvzrv
Revision: 404141

upgpkg: python-pymediainfo 3.0-1

Upgrading to 3.0. Removing code duplication when building for python2.

Modified:
  python-pymediainfo/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++++---------------
 1 file changed, 12 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-08 17:54:13 UTC (rev 404140)
+++ PKGBUILD	2018-11-08 18:04:11 UTC (rev 404141)
@@ -2,8 +2,8 @@
 _name=pymediainfo
 pkgbase=python-pymediainfo
 pkgname=('python-pymediainfo' 'python2-pymediainfo')
-pkgver=2.3.0
-pkgrel=2
+pkgver=3.0
+pkgrel=1
 pkgdesc="A Python wrapper around the MediaInfo library"
 arch=('any')
 url="https://github.com/sbraz/pymediainfo/"
@@ -11,30 +11,27 @@
 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=('6ca616ac92f4e8ab71d8edcdd1208dc3dcf9a13f7c3dd2d401a4997c95222b4e559786678826f75b631c4c46913c9cb390126a5468714a7c417638d3a4468d32')
+sha512sums=('b6828065f8d4907e94a299e4b3d550b1aad6dfa335b5eaae73e51a9b9052a8c494960b95473b49c10bb4407d3f48db07c2457b2937464317d64997c380571bcd')
 
 prepare() {
-  mv -v "${_name}-${pkgver}" "${pkgname[0]}-${pkgver}"
-  cp -av "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}"
+  mv -v "${_name}-${pkgver}" "${pkgbase}-${pkgver}"
 }
 
 build() {
-  cd "${pkgname[0]}-${pkgver}"
+  cd "${pkgbase}-${pkgver}"
   python setup.py build
-  cd ../"${pkgname[1]}-${pkgver}"
   python2 setup.py build
 }
 
 check() {
-  cd "${pkgname[0]}-${pkgver}"
+  cd "${pkgbase}-${pkgver}"
   python setup.py test
-  cd ../"${pkgname[1]}-${pkgver}"
   python2 setup.py test
 }
 
 package_python-pymediainfo() {
-  depends=('mediainfo' 'python')
-  cd "${pkgname}-${pkgver}"
+  depends=('libmediainfo' 'python')
+  cd "${pkgbase}-${pkgver}"
   python setup.py install --skip-build \
     --optimize=1 \
     --prefix=/usr \
@@ -41,7 +38,7 @@
     --root="${pkgdir}"
   # license
   install -vDm 644 LICENSE \
-    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    -t "${pkgdir}/usr/share/licenses/${pkgname}"
   # docs
   install -t "${pkgdir}/usr/share/doc/${pkgname}" \
     -vDm 644 {AUTHORS,README.rst}
@@ -48,8 +45,8 @@
 }
 
 package_python2-pymediainfo() {
-  depends=('mediainfo' 'python2')
-  cd "${pkgname}-${pkgver}"
+  depends=('libmediainfo' 'python2')
+  cd "${pkgbase}-${pkgver}"
   python2 setup.py install --skip-build \
     --optimize=1 \
     --prefix=/usr \
@@ -56,7 +53,7 @@
     --root="${pkgdir}"
   # license
   install -vDm 644 LICENSE \
-    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    -t "${pkgdir}/usr/share/licenses/${pkgname}"
   # docs
   install -t "${pkgdir}/usr/share/doc/${pkgname}" \
     -vDm 644 {AUTHORS,README.rst}



More information about the arch-commits mailing list