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

David Runge dvzrv at archlinux.org
Mon Dec 4 12:38:26 UTC 2017


    Date: Monday, December 4, 2017 @ 12:38:24
  Author: dvzrv
Revision: 272114

upgpkg: nomacs 3.8.0-2

Updating maintainer. Switching to sha512sums. Not using out-of-tree build. Minor fixes.

Modified:
  nomacs/trunk/PKGBUILD

----------+
 PKGBUILD |   39 ++++++++++++++++++++++-----------------
 1 file changed, 22 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-04 12:27:18 UTC (rev 272113)
+++ PKGBUILD	2017-12-04 12:38:24 UTC (rev 272114)
@@ -1,36 +1,41 @@
 # $Id$
-# Maintainer: speps <speps at aur dot archlinux dot org>
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: speps <speps at aur dot archlinux dot org>
 
 pkgname=nomacs
 pkgver=3.8.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A Qt image viewer"
-arch=(x86_64)
+arch=('x86_64')
 url="https://www.nomacs.org/"
 license=('GPL3')
 depends=('qt5-svg' 'exiv2' 'libraw' 'opencv')
 makedepends=('cmake' 'qt5-tools')
-source=("$pkgname-$pkgver::https://github.com/nomacs/nomacs/archive/$pkgver.tar.gz"
-        nomacs-plugins-$pkgver.tar.gz::"https://github.com/nomacs/nomacs-plugins/archive/$pkgver.tar.gz"
-        nomacs-no-coverage.patch)
-sha256sums=('f43ad1507f2890db2fbaa0cb110de3ac5efe754cf2e7a053eaabfed4d5e06845'
-            '5a700b27990fb72ae8582e69143389d0cf9c9313f9b361348b9bb8339b3dabdc'
-            '7e825b93119055cae88960cb3bd1fbc2efc43f48d996eef01ee2ae3b569d3097')
+source=("${pkgname}-${pkgver}::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz"
+        "${pkgname}-plugins-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}-plugins/archive/${pkgver}.tar.gz"
+        "${pkgname}-no-coverage.patch")
+sha512sums=('90ffd1ea7f6d8e2f07b2b093ebc7cfec682f11b874d95e249f3d35a2ceb8b75e7a0c55f19c978231c3c8342abe5cb251359771fd90aa39b50ee0a6d1514e88e1'
+            '7fa43377a908912d0eafddd45734ff5698739fd9bee5e87b24a154ea448c81270087f22b61e89f95e71511b1d0ab5e3fceef567d34a4c64a41708df2313e6879'
+            '321308d9b7dbc5d2ffa00cecb6f20a66dd39767239bc87b6d8aec0997a2a65872e1447c6ea2527038a5e332f32962e1fa9e09c83b93cf34ac0e03733479b36bb')
 
 prepare() {
-  mv nomacs-plugins-$pkgver $pkgname-$pkgver/ImageLounge/plugins
-  cd $pkgname-$pkgver
-  mkdir -p build
-  patch -p1 -i ../nomacs-no-coverage.patch # Disable tests
+  cd "${pkgname}-${pkgver}"
+
+  # move plugins
+  mv "${srcdir}/${pkgname}-plugins-${pkgver}" "ImageLounge/plugins"
+
+  # disable code coverage:
+  # https://github.com/nomacs/nomacs/issues/170
+  patch -p1 -i "../${pkgname}-no-coverage.patch"
 }
 
 build() {
-  cd $pkgname-$pkgver/build
-  cmake ../ImageLounge -DCMAKE_INSTALL_PREFIX=/usr
+  cd "${pkgname}-${pkgver}"
+  cmake ./ImageLounge -DCMAKE_INSTALL_PREFIX=/usr
   make
 }
 
 package() {
-  cd $pkgname-$pkgver/build
-  make DESTDIR="$pkgdir" install
+  cd "${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
 }



More information about the arch-commits mailing list