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

Antonio Rojas arojas at archlinux.org
Wed Apr 8 16:57:20 UTC 2020


    Date: Wednesday, April 8, 2020 @ 16:57:19
  Author: arojas
Revision: 612666

archrelease: copy trunk to community-any

Added:
  pdfsam/repos/community-any/PKGBUILD
    (from rev 612665, pdfsam/trunk/PKGBUILD)
  pdfsam/repos/community-any/pdfsam
    (from rev 612665, 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-04-08 16:56:30 UTC (rev 612665)
+++ PKGBUILD	2020-04-08 16:57:19 UTC (rev 612666)
@@ -1,51 +0,0 @@
-# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
-# Contributor: Tom <reztho at archlinux dot us>
-
-pkgname=pdfsam
-pkgver=4.1.1
-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=('04dcf874c514d166dec18cb6d616fc9206c6c226ccb0ae85e241789568dffbc7ceed1259f07fdf03b5c90ea4e1f16ce8a3293af8849ecc6da94e807c69977dec'
-            'c0d8665e8f0a82e539cd70972f95f819d13b10166f1e4bb04d032d108ef5de45fe77f8716e8e2f0fa129e7042907928bde1d947cc54f691aa6d87a76dfaa10c1')

Copied: pdfsam/repos/community-any/PKGBUILD (from rev 612665, pdfsam/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-08 16:57:19 UTC (rev 612666)
@@ -0,0 +1,51 @@
+# 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')

Deleted: pdfsam
===================================================================
--- pdfsam	2020-04-08 16:56:30 UTC (rev 612665)
+++ pdfsam	2020-04-08 16:57:19 UTC (rev 612666)
@@ -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 612665, pdfsam/trunk/pdfsam)
===================================================================
--- pdfsam	                        (rev 0)
+++ pdfsam	2020-04-08 16:57:19 UTC (rev 612666)
@@ -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