Date: Tuesday, March 6, 2018 @ 17:55:31
  Author: dvzrv
Revision: 303158

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2018-03-06 17:55:22 UTC (rev 303157)
+++ PKGBUILD    2018-03-06 17:55:31 UTC (rev 303158)
@@ -1,38 +0,0 @@
-# Maintainer: David Runge <d...@sleepmap.de>
-
-pkgname=python-imdbpy
-pkgver=6.2
-pkgrel=2
-pkgdesc="Python bindings for the Internet Movie Database (IMDb)"
-url="https://imdbpy.sourceforge.io/";
-arch=('any')
-license=('GPL2')
-depends=('python')
-makedepends=('python-pytest' 'python-setuptools')
-optdepends=('python-lxml' 'python-sqlalchemy')
-source=("https://github.com/alberanid/${pkgname/python-/}/archive/${pkgver}.tar.gz";)
-sha512sums=('78b371eb73eb2eda2df465ab83a05152d156eb19dd05f317173aa15b8b56c14fa9f9d4943d053c93a29da794b608a0ea4af3353143fb76e033c6dc0d8e651cd8')
-
-prepare() {
-  cd "${pkgname/python-/}-${pkgver}"
-  # fix install folder for docs
-  sed -i "s/'doc'/'share\/doc'/g" setup.py
-  # fix install folder for config
-  sed -i "s/'etc'/'\/etc'/g" setup.py
-}
-
-build() {
-  cd "${pkgname/python-/}-${pkgver}"
-  python setup.py build
-}
-
-package() {
-  cd "${pkgname/python-/}-${pkgver}"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}/"
-  install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-imdbpy/repos/community-any/PKGBUILD (from rev 303157, 
python-imdbpy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2018-03-06 17:55:31 UTC (rev 303158)
@@ -0,0 +1,46 @@
+# Maintainer: David Runge <d...@sleepmap.de>
+
+pkgname=python-imdbpy
+pkgver=6.3
+pkgrel=1
+pkgdesc="Python bindings for the Internet Movie Database (IMDb)"
+url="https://imdbpy.sourceforge.io/";
+arch=('any')
+license=('GPL2')
+depends=('python-lxml' 'python-sqlalchemy')
+makedepends=('python-pytest' 'python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-cov')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/alberanid/${pkgname/python-/}/archive/${pkgver}.tar.gz";)
+sha512sums=('7317d55a7dce4d0d94d6d7c8758b719685c596981d7ee07077eb9cb998d67d3f808c8659a0e920bde8d029deb0ec0ccd102ea577e98cd9cea4ba2ae8b0a27f6d')
+
+prepare() {
+  mv -v "${pkgname/python-/}-${pkgver}" "${pkgname}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
+  # fix install folder for docs and config
+  sed -e "s/'doc'/'share\/doc'/" \
+      -e "s/'etc'/'\/etc'/" -i setup.py
+  # removing broken test: https://github.com/alberanid/imdbpy/issues/135
+  sed '366,369d' -i tests/test_http_movie_combined.py
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  export PYTHONPATH=${srcdir}/${pkgname}-${pkgver}/build:${PYTHONPATH}
+  py.test
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}/"
+  install -vDm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to