[arch-commits] Commit in pdfsam/repos/community-any (PKGBUILD PKGBUILD pdfsam pdfsam)

Antonio Rojas arojas at archlinux.org
Fri May 15 19:16:55 UTC 2020


    Date: Friday, May 15, 2020 @ 19:16:54
  Author: arojas
Revision: 628087

archrelease: copy trunk to community-any

Added:
  pdfsam/repos/community-any/PKGBUILD
    (from rev 628086, pdfsam/trunk/PKGBUILD)
  pdfsam/repos/community-any/pdfsam
    (from rev 628086, pdfsam/trunk/pdfsam)
Deleted:
  pdfsam/repos/community-any/PKGBUILD
  pdfsam/repos/community-any/pdfsam

----------+
 PKGBUILD |  102 ++++++++++++++++++++++++++++++-------------------------------
 pdfsam   |   72 +++++++++++++++++++++----------------------
 2 files changed, 87 insertions(+), 87 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-15 19:16:41 UTC (rev 628086)
+++ PKGBUILD	2020-05-15 19:16:54 UTC (rev 628087)
@@ -1,51 +0,0 @@
-# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
-# Contributor: Tom <reztho at archlinux dot us>
-
-pkgname=pdfsam
-pkgver=4.1.2
-pkgrel=1
-pkgdesc="A free open source tool to split and merge pdf documents"
-arch=('any')
-url="https://www.pdfsam.org/"
-license=('AGPL3')
-depends=('hicolor-icon-theme' 'java-environment>=11' 'sh')
-makedepends=('desktop-file-utils' 'gendesk')
-source=("https://github.com/torakiki/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}-linux.zip"
-        "pdfsam")
-
-prepare() {
-  # create *.desktop file
-  gendesk -f -n \
-          --pkgname="${pkgname}" \
-          --pkgdesc="${pkgdesk}" \
-          --name="PDFsam" \
-          --categories="Office"
-
-  # extract icons
-  bsdtar -xf ${pkgname}-${pkgver}-linux/pdfsam-basic-${pkgver}.jar images/basic
-}
-
-package() {
-  install -dm755 "${pkgdir}/usr/share/java/${pkgname}/lib"
-  install -Dm644 "${pkgname}-${pkgver}-linux/pdfsam-basic-${pkgver}.jar" \
-                 "${pkgdir}/usr/share/java/${pkgname}/"
-  install -Dm644 "${pkgname}-${pkgver}-linux/lib/"* \
-                 "${pkgdir}/usr/share/java/${pkgname}/lib"
-  install -Dm755 "${pkgname}-${pkgver}-linux/bin/pdfsam.sh" \
-                 "${pkgdir}/usr/share/java/${pkgname}/bin/pdfsam.sh"
-
-  # exec
-  install -Dm755 "pdfsam" "${pkgdir}/usr/bin/pdfsam"
-
-  # icons
-  for _icon in 16 24 32 48 64 96 128 256 512; do
-      install -Dm644 images/basic/${_icon}x${_icon}.png \
-        "${pkgdir}/usr/share/icons/hicolor/${_icon}x${_icon}/apps/${pkgname}.png"
-  done
-
-  # desktop
-  install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
-}
-
-sha512sums=('275af6265edfbd680116f85d05407f297deb13a3ba4ef64a5539018aac43000a28b8a015dc432a27188471b2d24debe50a8c847b770f635969b257d879618767'
-            'c0d8665e8f0a82e539cd70972f95f819d13b10166f1e4bb04d032d108ef5de45fe77f8716e8e2f0fa129e7042907928bde1d947cc54f691aa6d87a76dfaa10c1')

Copied: pdfsam/repos/community-any/PKGBUILD (from rev 628086, pdfsam/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-15 19:16:54 UTC (rev 628087)
@@ -0,0 +1,51 @@
+# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
+# Contributor: Tom <reztho at archlinux dot us>
+
+pkgname=pdfsam
+pkgver=4.1.3
+pkgrel=1
+pkgdesc="A free open source tool to split and merge pdf documents"
+arch=('any')
+url="https://www.pdfsam.org/"
+license=('AGPL3')
+depends=('hicolor-icon-theme' 'java-environment>=11' 'sh')
+makedepends=('desktop-file-utils' 'gendesk')
+source=("https://github.com/torakiki/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}-linux.zip"
+        "pdfsam")
+
+prepare() {
+  # create *.desktop file
+  gendesk -f -n \
+          --pkgname="${pkgname}" \
+          --pkgdesc="${pkgdesk}" \
+          --name="PDFsam" \
+          --categories="Office"
+
+  # extract icons
+  bsdtar -xf ${pkgname}-${pkgver}-linux/pdfsam-basic-${pkgver}.jar images/basic
+}
+
+package() {
+  install -dm755 "${pkgdir}/usr/share/java/${pkgname}/lib"
+  install -Dm644 "${pkgname}-${pkgver}-linux/pdfsam-basic-${pkgver}.jar" \
+                 "${pkgdir}/usr/share/java/${pkgname}/"
+  install -Dm644 "${pkgname}-${pkgver}-linux/lib/"* \
+                 "${pkgdir}/usr/share/java/${pkgname}/lib"
+  install -Dm755 "${pkgname}-${pkgver}-linux/bin/pdfsam.sh" \
+                 "${pkgdir}/usr/share/java/${pkgname}/bin/pdfsam.sh"
+
+  # exec
+  install -Dm755 "pdfsam" "${pkgdir}/usr/bin/pdfsam"
+
+  # icons
+  for _icon in 16 24 32 48 64 96 128 256 512; do
+      install -Dm644 images/basic/${_icon}x${_icon}.png \
+        "${pkgdir}/usr/share/icons/hicolor/${_icon}x${_icon}/apps/${pkgname}.png"
+  done
+
+  # desktop
+  install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+}
+
+sha512sums=('5b5f7519862e78a26e067fbee832d742a037b5b67a7ba00b6184e910a9706f4c92f5f2777ec09a0b25d62b58e08ba0bdc03374ec3db8d1473fc0da9a4142308c'
+            'c0d8665e8f0a82e539cd70972f95f819d13b10166f1e4bb04d032d108ef5de45fe77f8716e8e2f0fa129e7042907928bde1d947cc54f691aa6d87a76dfaa10c1')

Deleted: pdfsam
===================================================================
--- pdfsam	2020-05-15 19:16:41 UTC (rev 628086)
+++ pdfsam	2020-05-15 19:16:54 UTC (rev 628087)
@@ -1,36 +0,0 @@
-#!/bin/sh
-# run application with java env >= 8
-
-PDFSAM_EXECUTABLE="/usr/share/java/pdfsam/bin/pdfsam.sh"
-PDFSAM_JAVA_VERSION="11"
-
-run_pdfsam() {
-    exec "${PDFSAM_EXECUTABLE}"
-    exit 0
-}
-
-# check JAVA_HOME first
-if test -n "${JAVA_HOME}"; then
-    if echo ${JAVA_HOME} | grep -q "${PDFSAM_JAVA_VERSION}"; then
-        # system environment variable set to required, do nothing
-        echo "Using java environment from JAVA_HOME: ${JAVA_HOME}" >&2
-        run_pdfsam
-    else
-        # unset JAVA_HOME
-        echo "Unset JAVA_HOME for this run: ${JAVA_HOME}" >&2
-        unset JAVA_HOME
-    fi
-fi
-
-# check current environment
-if archlinux-java status | grep "default" | grep -q "${PDFSAM_JAVA_VERSION}"; then
-    # required java version is set to default, do nothing
-    echo "Using system enabled java environment" >&2
-    run_pdfsam
-fi
-
-# find valid environment
-PDFSAM_JAVA_ENV="`archlinux-java status | grep "${PDFSAM_JAVA_VERSION}" | awk '{ print $1 }' | head -1`"
-export PATH="/usr/lib/jvm/${PDFSAM_JAVA_ENV%/*}/bin/:${PATH}"
-echo "Run with exported ${PDFSAM_JAVA_ENV}" >&2
-run_pdfsam

Copied: pdfsam/repos/community-any/pdfsam (from rev 628086, pdfsam/trunk/pdfsam)
===================================================================
--- pdfsam	                        (rev 0)
+++ pdfsam	2020-05-15 19:16:54 UTC (rev 628087)
@@ -0,0 +1,36 @@
+#!/bin/sh
+# run application with java env >= 8
+
+PDFSAM_EXECUTABLE="/usr/share/java/pdfsam/bin/pdfsam.sh"
+PDFSAM_JAVA_VERSION="11"
+
+run_pdfsam() {
+    exec "${PDFSAM_EXECUTABLE}"
+    exit 0
+}
+
+# check JAVA_HOME first
+if test -n "${JAVA_HOME}"; then
+    if echo ${JAVA_HOME} | grep -q "${PDFSAM_JAVA_VERSION}"; then
+        # system environment variable set to required, do nothing
+        echo "Using java environment from JAVA_HOME: ${JAVA_HOME}" >&2
+        run_pdfsam
+    else
+        # unset JAVA_HOME
+        echo "Unset JAVA_HOME for this run: ${JAVA_HOME}" >&2
+        unset JAVA_HOME
+    fi
+fi
+
+# check current environment
+if archlinux-java status | grep "default" | grep -q "${PDFSAM_JAVA_VERSION}"; then
+    # required java version is set to default, do nothing
+    echo "Using system enabled java environment" >&2
+    run_pdfsam
+fi
+
+# find valid environment
+PDFSAM_JAVA_ENV="`archlinux-java status | grep "${PDFSAM_JAVA_VERSION}" | awk '{ print $1 }' | head -1`"
+export PATH="/usr/lib/jvm/${PDFSAM_JAVA_ENV%/*}/bin/:${PATH}"
+echo "Run with exported ${PDFSAM_JAVA_ENV}" >&2
+run_pdfsam


More information about the arch-commits mailing list