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

Sven-Hendrik Haase svenstaro at archlinux.org
Tue Jul 28 01:13:14 UTC 2020


    Date: Tuesday, July 28, 2020 @ 01:13:14
  Author: svenstaro
Revision: 665592

upgpkg: diffpdf 2.1.3.1-3: Modernize package

Modified:
  diffpdf/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-28 01:04:09 UTC (rev 665591)
+++ PKGBUILD	2020-07-28 01:13:14 UTC (rev 665592)
@@ -6,7 +6,7 @@
 
 pkgname=diffpdf
 pkgver=2.1.3.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Diffing pdf files visually or textually"
 url="https://gitlab.com/eang/diffpdf"
 license=('GPL2')
@@ -17,18 +17,16 @@
 sha512sums=('9213fc8ee9d568ad97824d30de1ffb137c30c58935f8a19e19690e956cd4db1a0c6020d0543f76ca1b4ca8858d7ce9329544bda6a68b943b00e1a581cdb1ed41')
 
 build() {
-  cd ${srcdir}/${pkgname}-v${pkgver}/
+  cd ${pkgname}-v${pkgver}/
   cmake -D CMAKE_INSTALL_PREFIX="/usr" .
   make
 }
 
 package() {
-  cd ${srcdir}/${pkgname}-v${pkgver}/
-  make DESTDIR=${pkgdir} install
+  cd ${pkgname}-v${pkgver}/
+  make DESTDIR="${pkgdir}" install
 
-  _licdir=${pkgdir}/usr/share/licenses/${pkgname}
-  _tradir=${pkgdir}/usr/share/${pkgname}/translations
-  install -dpm755 ${_licdir} ${_tradir}
-  install -Dpm644 gpl-2.0.txt ${_licdir}/
-  install -Dpm644 *.qm ${_tradir}/
+  install -dm755 "${pkgdir}"/usr/share/${pkgname}/translations
+  install -Dm644 *.qm "${pkgdir}"/usr/share/${pkgname}/translations
+  install -Dm644 gpl-2.0.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
 }



More information about the arch-commits mailing list