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

David Runge dvzrv at archlinux.org
Mon Aug 12 08:45:39 UTC 2019


    Date: Monday, August 12, 2019 @ 08:45:39
  Author: dvzrv
Revision: 498998

upgpkg: nfoview 1.27-1

Upgrading to 1.27. Adding xvfb-run based py.test call in check(). Minor style fixes.

Modified:
  nfoview/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-12 08:40:58 UTC (rev 498997)
+++ PKGBUILD	2019-08-12 08:45:39 UTC (rev 498998)
@@ -4,7 +4,7 @@
 # Contributor: VuDu <vudu.curse at gmail.com>
 
 pkgname=nfoview
-pkgver=1.26.1
+pkgver=1.27
 pkgrel=1
 pkgdesc="Simple NFO file viewer in GTK+ 3"
 arch=('any')
@@ -11,11 +11,12 @@
 url="https://otsaloma.io/nfoview/"
 license=('GPL3')
 depends=('gtk3' 'python-gobject')
+checkdepends=('python-pytest' 'xorg-server-xvfb')
 makedepends=('python-setuptools')
 optdepends=('terminus-font: recommended font')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/otsaloma/${pkgname}/archive/${pkgver}.tar.gz"
         'x-nfo.desktop')
-sha512sums=('9c800f47880b6e9c014a683c567b790a8f06c6c6e516b2ec5ec58bb09b16413e525184239d4cb06bdd0067748cf15118acf9b77871aaac184076295c3edae7c4'
+sha512sums=('157257f9f289bdeac140054320ad43893c73995e11e6ccc91ebd2ca53878f00d45945c4e3ac3c11ec2f589a0349598f96dfecad3b0e3cfbe06e5a036bcedc3b5'
             'a800af55df103ee12ce7a8815780e15896d7ad3eee947760ff4486ffb57fea8cf4105b5ffc61dc81e849ddf03eeac77f593a4ffe4fd73b5ea026672c72dff108')
 
 build() {
@@ -23,20 +24,24 @@
   python setup.py build
 }
 
+check() {
+  cd "${pkgname}-${pkgver}"
+  xvfb-run py.test -vvv "${pkgname}"
+}
+
 package() {
   cd "${pkgname}-${pkgver}"
 
   python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}/"
-
+                          --optimize=1 \
+                          --prefix=/usr \
+                          --root="${pkgdir}/"
   # docs
   install -vDm 644 {AUTHORS,NEWS,README,TODO}.md \
     -t "${pkgdir}/usr/share/doc/${pkgname}/"
 
   install -vDm 644 "${srcdir}/x-nfo.desktop" \
-    "${pkgdir}/usr/share/mimelnk/text/x-nfo.desktop"
+    -t "${pkgdir}/usr/share/mimelnk/text/"
 }
 
 # vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list