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

Evgeniy Alekseev arcanis at archlinux.org
Fri Feb 19 11:45:39 UTC 2016


    Date: Friday, February 19, 2016 @ 12:45:39
  Author: arcanis
Revision: 162481

archrelease: copy trunk to community-any

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

----------------+
 PKGBUILD       |  147 ++++++++++++++++++-------------------------------------
 pdfsam.install |   14 ++---
 2 files changed, 56 insertions(+), 105 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-19 11:45:22 UTC (rev 162480)
+++ PKGBUILD	2016-02-19 11:45:39 UTC (rev 162481)
@@ -1,98 +0,0 @@
-# $Id$
-# Maintainer: Evgeniy Alekseev <arcanis.arch at gmail dot com>
-# Contributor: Tom <reztho at archlinux dot us>
-
-pkgname=pdfsam
-pkgver=2.2.4
-pkgrel=1
-pkgdesc="A free open source tool to split and merge pdf documents"
-arch=('any')
-url="http://www.pdfsam.org/"
-license=('GPL')
-depends=('java-environment' 'sh')
-makedepends=('apache-ant' 'desktop-file-utils' 'gendesk' 'libarchive')
-source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}-out-src.zip")
-install=${pkgname}.install
-md5sums=('5947fc9cfc53cbc242a46881d9216957')
-
-_branchdir="pdfsam-maine"
-_builddir="${pkgname}-${pkgver}/build"
-_buildver="pdfsam-basic"
-
-prepare() {
-  # create *.desktop file
-  gendesk -n -f \
-          --pkgname="${pkgname}" \
-          --pkgdesc="${pkgdesk}" \
-          --name="PDFsam" \
-          --categories="Office"
-}
-
-build() {
-  # unzip source arhives
-  find . -name '*.zip' ! -name "${pkgname}-${pkgver}-out-src.zip" -exec bsdtar -xf {} \;
-
-  mkdir -p "${srcdir}/${_builddir}"
-  cd "${srcdir}/${_branchdir}/ant"
-  ant -Dbuild.dir="${srcdir}/${_builddir}" \
-      -Dworkspace.dir="${srcdir}"
-}
-
-package() {
-  install -dm755 "${pkgdir}/usr/share/java/${pkgname}/"
-  # main program
-  install -Dm644 "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/pdfsam-config.xml" \
-                 "${pkgdir}/usr/share/java/${pkgname}/"
-  install -Dm644 "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/${pkgname}-${pkgver}.jar" \
-                 "${pkgdir}/usr/share/java/${pkgname}/"
-
-  # install plugins
-  cd "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/plugins/"
-  for _plugin in $(find * -type d); do
-    install -dm755 "${pkgdir}/usr/share/java/${pkgname}/plugins/${_plugin}"
-    install -m644 "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/plugins/${_plugin}/"* \
-                  "${pkgdir}/usr/share/java/${pkgname}/plugins/${_plugin}/"
-  done
-
-  # install libs
-  install -dm755 "${pkgdir}/usr/share/java/${pkgname}/"{lib,ext}
-  install -m644 "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/lib/"* \
-                "${pkgdir}/usr/share/java/${pkgname}/lib/"
-  install -m644 "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/ext/"* \
-                "${pkgdir}/usr/share/java/${pkgname}/ext/"
-
-  # install scripts and change paths
-  install -Dm755 "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/bin/run.sh" \
-                 "${pkgdir}/usr/bin/${pkgname}"
-  sed -i "s at DIRNAME=\"\`dirname \$0\`\"@DIRNAME=\"/usr/share/java/${pkgname}\"@g" "${pkgdir}/usr/bin/${pkgname}"
-  install -Dm755 "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/bin/run-console.sh" \
-                 "${pkgdir}/usr/bin/${pkgname}-console"
-  sed -i "s at DIRNAME=\"../lib/\"@DIRNAME=\"/usr/share/java/${pkgname}/lib/\"@g" "${pkgdir}/usr/bin/${pkgname}-console"
-
-  # licenses (they are needed for plugins)
-  cd "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/doc/license/"
-  for _plugin in $(find * -type d); do
-    install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}/${_plugin}"
-    install -m644 "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/doc/license/${_plugin}/"* \
-                  "${pkgdir}/usr/share/licenses/${pkgname}/${_plugin}/"
-  done
-
-  # desktop
-  install -Dm644 "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/doc/icons/pdfsam_basic.png" \
-                 "${pkgdir}/usr/share/pixmaps/pdfsam.png"
-  install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
-
-  # docs
-  install -dm755 "${pkgdir}/usr/share/doc/${pkgname}/examples"
-  install -dm755 "${pkgdir}/usr/share/doc/${pkgname}/xsd"
-  install -Dm644 "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/doc/pdfsam-1.1.0-tutorial.pdf" \
-                 "${pkgdir}/usr/share/doc/${pkgname}/"
-  install -Dm644 "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/doc/changelog-basic.txt" \
-                 "${pkgdir}/usr/share/doc/${pkgname}/"
-  install -Dm644 "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/doc/readme.txt" \
-                 "${pkgdir}/usr/share/doc/${pkgname}/"
-  install -Dm644 "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/doc/examples/"* \
-                 "${pkgdir}/usr/share/doc/${pkgname}/examples/"
-  install -Dm644 "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/doc/xsd/"* \
-                 "${pkgdir}/usr/share/doc/${pkgname}/xsd/"
-}

Copied: pdfsam/repos/community-any/PKGBUILD (from rev 162480, pdfsam/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-02-19 11:45:39 UTC (rev 162481)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
+# Contributor: Tom <reztho at archlinux dot us>
+
+pkgname=pdfsam
+pkgver=3.0.1
+_pkgver=3.0.1.RELEASE
+pkgrel=2
+pkgdesc="A free open source tool to split and merge pdf documents"
+arch=('any')
+url="http://www.pdfsam.org/"
+license=('AGPL3')
+depends=('java-environment', 'sh')
+makedepends=('desktop-file-utils' 'gendesk')
+optdepends=('java-openjfx: required if openjdk is used')
+source=("https://github.com/torakiki/${pkgname}/releases/download/v${_pkgver}/${pkgname}-${_pkgver}-bin.zip"
+        "pdfsam.png")
+install="${pkgname}.install"
+md5sums=('c637a48637e142ac9901e2bd069ce9d2'
+         '033e0e52c29624ce31d86b8a8b43adb6')
+
+prepare() {
+  # create *.desktop file
+  gendesk -f -n \
+          --pkgname="${pkgname}" \
+          --pkgdesc="${pkgdesk}" \
+          --name="PDFsam" \
+          --categories="Office"
+}
+
+package() {
+  install -dm755 "${pkgdir}/usr/share/java/${pkgname}/modules"
+  install -Dm644 "${pkgname}-${_pkgver}/pdfsam-community-3.0.1.RELEASE.jar" \
+                 "${pkgdir}/usr/share/java/${pkgname}/"
+  install -Dm755 "${pkgname}-${_pkgver}/bin/pdfsam.sh" \
+                 "${pkgdir}/usr/share/java/${pkgname}/bin/pdfsam.sh"
+  install -Dm755 "${pkgname}-${_pkgver}/etc/logback.xml" \
+                 "${pkgdir}/usr/share/java/${pkgname}/etc/logback.xml"
+  install -Dm755 "${pkgname}-${_pkgver}/resources/splash.gif" \
+                 "${pkgdir}/usr/share/java/${pkgname}/resources/splash.gif"
+
+  # exec
+  install -dm755 "${pkgdir}/usr/bin/"
+  ln -s "/usr/share/java/pdfsam/bin/pdfsam.sh" "${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"
+}

Deleted: pdfsam.install
===================================================================
--- pdfsam.install	2016-02-19 11:45:22 UTC (rev 162480)
+++ pdfsam.install	2016-02-19 11:45:39 UTC (rev 162481)
@@ -1,7 +0,0 @@
-post_install() {
-  update-desktop-database -q
-}
-
-post_remove() {
-  post_install
-}

Copied: pdfsam/repos/community-any/pdfsam.install (from rev 162480, pdfsam/trunk/pdfsam.install)
===================================================================
--- pdfsam.install	                        (rev 0)
+++ pdfsam.install	2016-02-19 11:45:39 UTC (rev 162481)
@@ -0,0 +1,7 @@
+post_install() {
+  update-desktop-database -q
+}
+
+post_remove() {
+  post_install
+}

Copied: pdfsam/repos/community-any/pdfsam.png (from rev 162480, pdfsam/trunk/pdfsam.png)
===================================================================
(Binary files differ)



More information about the arch-commits mailing list