[arch-commits] Commit in pdfsam/trunk (PKGBUILD pdfsam.png)

Evgeniy Alekseev arcanis at archlinux.org
Sun Feb 14 15:36:15 UTC 2016


    Date: Sunday, February 14, 2016 @ 16:36:15
  Author: arcanis
Revision: 161536

upgpkg: pdfsam 3.0.1-1

Added:
  pdfsam/trunk/pdfsam.png
Modified:
  pdfsam/trunk/PKGBUILD

------------+
 PKGBUILD   |   98 ++++++++++++++---------------------------------------------
 pdfsam.png |    1 
 2 files changed, 25 insertions(+), 74 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-14 11:35:44 UTC (rev 161535)
+++ PKGBUILD	2016-02-14 15:36:15 UTC (rev 161536)
@@ -3,25 +3,24 @@
 # Contributor: Tom <reztho at archlinux dot us>
 
 pkgname=pdfsam
-pkgver=2.2.4
+pkgver=3.0.1
+_pkgver=3.0.1.RELEASE
 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')
+license=('AGPL3')
+depends=('java-environment')
+makedepends=('desktop-file-utils' 'gendesk')
+source=("https://github.com/torakiki/${pkgname}/releases/download/v${_pkgver}/${pkgname}-${_pkgver}-bin.zip"
+        "pdfsam.png")
+install="${pkgname}.install"
+md5sums=('c637a48637e142ac9901e2bd069ce9d2'
+         '033e0e52c29624ce31d86b8a8b43adb6')
 
-_branchdir="pdfsam-maine"
-_builddir="${pkgname}-${pkgver}/build"
-_buildver="pdfsam-basic"
-
 prepare() {
   # create *.desktop file
-  gendesk -n -f \
+  gendesk -f -n \
           --pkgname="${pkgname}" \
           --pkgdesc="${pkgdesk}" \
           --name="PDFsam" \
@@ -28,71 +27,22 @@
           --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" \
+  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 -Dm644 "${srcdir}/${_builddir}/${_branchdir}/release/dist/${_buildver}/${pkgname}-${pkgver}.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"
 
-  # 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
+  # exec
+  install -dm755 "${pkgdir}/usr/bin/"
+  ln -s "/usr/share/java/pdfsam/bin/pdfsam.sh" "${pkgdir}/usr/bin/pdfsam"
 
-  # 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/"
+  install -Dm644 "pdfsam.png" "${pkgdir}/usr/share/pixmaps/pdfsam.png"
+  install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
 }

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

Index: pdfsam/trunk/pdfsam.png
===================================================================
--- pdfsam.png	2016-02-14 11:35:44 UTC (rev 161535)
+++ pdfsam.png	2016-02-14 15:36:15 UTC (rev 161536)

Property changes on: pdfsam/trunk/pdfsam.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+image/png
\ No newline at end of property



More information about the arch-commits mailing list