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

Balló György bgyorgy at archlinux.org
Sat Mar 16 13:46:06 UTC 2019


    Date: Saturday, March 16, 2019 @ 13:46:04
  Author: bgyorgy
Revision: 442214

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-16 13:45:58 UTC (rev 442213)
+++ PKGBUILD	2019-03-16 13:46:04 UTC (rev 442214)
@@ -1,45 +0,0 @@
-# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
-# Contributor: Tom <reztho at archlinux dot us>
-
-pkgname=pdfsam
-pkgver=4.0.1
-pkgrel=1
-pkgdesc="A free open source tool to split and merge pdf documents"
-arch=('any')
-url="http://www.pdfsam.org/"
-license=('AGPL3')
-depends=('java-environment>=11' 'sh')
-makedepends=('desktop-file-utils' 'gendesk')
-source=("https://github.com/torakiki/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}-linux.zip"
-        "pdfsam"
-        "pdfsam.png")
-
-prepare() {
-  # create *.desktop file
-  gendesk -f -n \
-          --pkgname="${pkgname}" \
-          --pkgdesc="${pkgdesk}" \
-          --name="PDFsam" \
-          --categories="Office"
-}
-
-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"
-
-  # desktop
-  install -Dm644 "pdfsam.png" "${pkgdir}/usr/share/pixmaps/pdfsam.png"
-  install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
-}
-
-sha512sums=('2ae09a8dca04fd6f1b8b9773b0e12ce68803b2d4f5b231ae25ea1a64f1dcc054b4e9e159418337d4376afecd5adb02635368d99921ea1313832a9e3e6587fbd8'
-            '8be5dd1d9da3c0d646db88b12857f8e7c857447dc9f5344028ecb299b33a08723ab7b1d2b8d5582cee5d85eb632a907c4d153fb1593265dfc01f64b6b1af83bd'
-            '219c3b78b1246103ca6c0b4b50f23a38f994458f54ddfdd37058df33587e258bbe0c3b7f0866dc3d10e657c9425a8b3be915ef6a09a2401e937ac50315653dfb')

Copied: pdfsam/repos/community-any/PKGBUILD (from rev 442213, pdfsam/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-03-16 13:46:04 UTC (rev 442214)
@@ -0,0 +1,51 @@
+# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
+# Contributor: Tom <reztho at archlinux dot us>
+
+pkgname=pdfsam
+pkgver=4.0.1
+pkgrel=2
+pkgdesc="A free open source tool to split and merge pdf documents"
+arch=('any')
+url="http://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=('2ae09a8dca04fd6f1b8b9773b0e12ce68803b2d4f5b231ae25ea1a64f1dcc054b4e9e159418337d4376afecd5adb02635368d99921ea1313832a9e3e6587fbd8'
+            '8be5dd1d9da3c0d646db88b12857f8e7c857447dc9f5344028ecb299b33a08723ab7b1d2b8d5582cee5d85eb632a907c4d153fb1593265dfc01f64b6b1af83bd')

Deleted: pdfsam
===================================================================
--- pdfsam	2019-03-16 13:45:58 UTC (rev 442213)
+++ pdfsam	2019-03-16 13:46:04 UTC (rev 442214)
@@ -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 }'`"
-export PATH="/usr/lib/jvm/${PDFSAM_JAVA_ENV%/*}/jre/bin/:${PATH}"
-echo "Run with exported ${PDFSAM_JAVA_ENV}" >&2
-run_pdfsam

Copied: pdfsam/repos/community-any/pdfsam (from rev 442213, pdfsam/trunk/pdfsam)
===================================================================
--- pdfsam	                        (rev 0)
+++ pdfsam	2019-03-16 13:46:04 UTC (rev 442214)
@@ -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 }'`"
+export PATH="/usr/lib/jvm/${PDFSAM_JAVA_ENV%/*}/jre/bin/:${PATH}"
+echo "Run with exported ${PDFSAM_JAVA_ENV}" >&2
+run_pdfsam

Deleted: pdfsam.png
===================================================================
(Binary files differ)



More information about the arch-commits mailing list