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

Antonio Rojas arojas at archlinux.org
Tue Nov 3 18:08:32 UTC 2020


    Date: Tuesday, November 3, 2020 @ 18:08:31
  Author: arojas
Revision: 741185

archrelease: copy trunk to community-any

Added:
  pdfsam/repos/community-any/PKGBUILD
    (from rev 741184, pdfsam/trunk/PKGBUILD)
  pdfsam/repos/community-any/pdfsam
    (from rev 741184, 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-11-03 18:08:17 UTC (rev 741184)
+++ PKGBUILD	2020-11-03 18:08:31 UTC (rev 741185)
@@ -1,51 +0,0 @@
-# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
-# Contributor: Tom <reztho at archlinux dot us>
-
-pkgname=pdfsam
-pkgver=4.1.4
-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=('31b56c85a93ff399eb25cb7996bd73787e6231bd504e373aa9a963e78c24266a6c290c1b855d2335bdb9d06be5009cd5c4a2d8580eb4e61b060fdeea604a40ab'
-            'c0d8665e8f0a82e539cd70972f95f819d13b10166f1e4bb04d032d108ef5de45fe77f8716e8e2f0fa129e7042907928bde1d947cc54f691aa6d87a76dfaa10c1')

Copied: pdfsam/repos/community-any/PKGBUILD (from rev 741184, pdfsam/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-03 18:08:31 UTC (rev 741185)
@@ -0,0 +1,51 @@
+# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
+# Contributor: Tom <reztho at archlinux dot us>
+
+pkgname=pdfsam
+pkgver=4.2.0
+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=('26ec8f1c554c4b308c0fbc27d46c25c922fe0f6d128feb5156bdbb890646cf270a4b0dd54efe18e52775b90fcefb5e7748c9bd2bf131151c5f5a40711766c84a'
+            'c0d8665e8f0a82e539cd70972f95f819d13b10166f1e4bb04d032d108ef5de45fe77f8716e8e2f0fa129e7042907928bde1d947cc54f691aa6d87a76dfaa10c1')

Deleted: pdfsam
===================================================================
--- pdfsam	2020-11-03 18:08:17 UTC (rev 741184)
+++ pdfsam	2020-11-03 18:08:31 UTC (rev 741185)
@@ -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 741184, pdfsam/trunk/pdfsam)
===================================================================
--- pdfsam	                        (rev 0)
+++ pdfsam	2020-11-03 18:08:31 UTC (rev 741185)
@@ -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