[arch-commits] Commit in pdftk/repos/community-any (4 files)

Jonas Witschel diabonas at gemini.archlinux.org
Sat Dec 18 11:46:25 UTC 2021


    Date: Saturday, December 18, 2021 @ 11:46:23
  Author: diabonas
Revision: 1076726

archrelease: copy trunk to community-any

Added:
  pdftk/repos/community-any/PKGBUILD
    (from rev 1076725, pdftk/trunk/PKGBUILD)
  pdftk/repos/community-any/pdftk.sh
    (from rev 1076725, pdftk/trunk/pdftk.sh)
Deleted:
  pdftk/repos/community-any/PKGBUILD
  pdftk/repos/community-any/pdftk.sh

----------+
 PKGBUILD |   95 ++++++++++++++++++++++++++++++++-----------------------------
 pdftk.sh |    6 +--
 2 files changed, 53 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-18 11:46:07 UTC (rev 1076725)
+++ PKGBUILD	2021-12-18 11:46:23 UTC (rev 1076726)
@@ -1,45 +0,0 @@
-# Maintainer: Jonas Witschel <diabonas at archlinux.org>
-pkgname=pdftk
-pkgver=3.3.1
-pkgrel=1
-pkgdesc='Command-line tool for working with PDFs'
-arch=('any')
-url='https://gitlab.com/pdftk-java/pdftk'
-license=('GPL')
-depends=('java-runtime-headless' 'sh')
-makedepends=('ant' 'bcprov' 'java-commons-lang' 'strip-nondeterminism')
-checkdepends=('java-hamcrest' 'junit' 'junit-system-rules' 'poppler')
-optdepends=('bcprov: support for signed PDF documents'
-            'java-commons-lang: burst, dump_data, dump_data_fields and update_info operation support')
-source=("$url/-/archive/v$pkgver/$pkgname-v$pkgver.tar.bz2" 'pdftk.sh')
-sha512sums=('4b51bb6003680a5e41a3c08a8ab49e09de56a7dd5d4808ead1adf8293549436685fa4f3901c4426f0f92555bf85d2c875a80f2858e7de7ae53e01fda4f395d18'
-            '439c397472012d71c8e782a75819a7a950474c387b7050bbd5aa2f849d1dbe29423accf3f8e17d18436ba32eb4f76072df5b4f85caebd853df1e75c131631988')
-
-prepare() {
-	cd "$pkgname-v$pkgver"
-	mkdir lib
-	ln -s /usr/share/java/{bcprov,commons-lang/commons-lang,hamcrest-core,junit,junit-system-rules/system-rules}.jar lib
-	# No need for code coverage reports during tests
-	sed -ri '/<\/?jacoco:coverage>/d' build.xml
-}
-
-build() {
-	cd "$pkgname-v$pkgver"
-	ant clean jar
-
-	# Timestamps in JAR files generated by Ant do not honour SOURCE_DATE_EPOCH
-	# (https://bz.apache.org/bugzilla/show_bug.cgi?id=61269)
-	strip-nondeterminism --timestamp "$SOURCE_DATE_EPOCH" build/jar/pdftk.jar
-}
-
-check() {
-	cd "$pkgname-v$pkgver"
-	ant test-run
-}
-
-package() {
-	cd "$pkgname-v$pkgver"
-	install -Dm644 build/jar/pdftk.jar -t "$pkgdir/usr/share/java/$pkgname"
-	install -Dm644 pdftk.1 -t "$pkgdir/usr/share/man/man1"
-	install -Dm755 "$srcdir/pdftk.sh" "$pkgdir/usr/bin/pdftk"
-}

Copied: pdftk/repos/community-any/PKGBUILD (from rev 1076725, pdftk/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-18 11:46:23 UTC (rev 1076726)
@@ -0,0 +1,50 @@
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+pkgname=pdftk
+pkgver=3.3.1
+pkgrel=2
+pkgdesc='Command-line tool for working with PDFs'
+arch=('any')
+url='https://gitlab.com/pdftk-java/pdftk'
+license=('GPL')
+depends=('java-runtime-headless' 'sh')
+makedepends=('ant' 'bcprov' 'java-commons-lang' 'strip-nondeterminism')
+checkdepends=('java-hamcrest' 'junit' 'junit-system-rules' 'poppler')
+optdepends=('bcprov: support for signed PDF documents'
+            'java-commons-lang: burst, dump_data, dump_data_fields and update_info operation support')
+source=("$url/-/archive/v$pkgver/$pkgname-v$pkgver.tar.bz2" 'pdftk.sh'
+        "pdftk-3.3.1_fix-bcprov-1.70.patch::$url/-/commit/d8259eaaee8cf3c52504037fe08c180eb94e4b76.patch")
+sha512sums=('4b51bb6003680a5e41a3c08a8ab49e09de56a7dd5d4808ead1adf8293549436685fa4f3901c4426f0f92555bf85d2c875a80f2858e7de7ae53e01fda4f395d18'
+            '439c397472012d71c8e782a75819a7a950474c387b7050bbd5aa2f849d1dbe29423accf3f8e17d18436ba32eb4f76072df5b4f85caebd853df1e75c131631988'
+            '599cf4816f5cec537e2265ad79b3ff2cce4183b1c35ec50fad3b871d78a306ab3e654009c703c4947bd4f3919df7bbcb251f1fa27afb9ebf395e5d8669324a23')
+
+prepare() {
+	cd "$pkgname-v$pkgver"
+	mkdir lib
+	ln -s /usr/share/java/{bcprov,commons-lang/commons-lang,hamcrest-core,junit,junit-system-rules/system-rules}.jar lib
+	# No need for code coverage reports during tests
+	sed -ri '/<\/?jacoco:coverage>/d' build.xml
+
+	# Fix building with bcprov 1.70 (https://gitlab.com/pdftk-java/pdftk/-/merge_requests/26)
+	patch --forward --strip=1 --input="$srcdir/pdftk-3.3.1_fix-bcprov-1.70.patch"
+}
+
+build() {
+	cd "$pkgname-v$pkgver"
+	ant clean jar
+
+	# Timestamps in JAR files generated by Ant do not honour SOURCE_DATE_EPOCH
+	# (https://bz.apache.org/bugzilla/show_bug.cgi?id=61269)
+	strip-nondeterminism --timestamp "$SOURCE_DATE_EPOCH" build/jar/pdftk.jar
+}
+
+check() {
+	cd "$pkgname-v$pkgver"
+	ant test-run
+}
+
+package() {
+	cd "$pkgname-v$pkgver"
+	install -Dm644 build/jar/pdftk.jar -t "$pkgdir/usr/share/java/$pkgname"
+	install -Dm644 pdftk.1 -t "$pkgdir/usr/share/man/man1"
+	install -Dm755 "$srcdir/pdftk.sh" "$pkgdir/usr/bin/pdftk"
+}

Deleted: pdftk.sh
===================================================================
--- pdftk.sh	2021-12-18 11:46:07 UTC (rev 1076725)
+++ pdftk.sh	2021-12-18 11:46:23 UTC (rev 1076726)
@@ -1,3 +0,0 @@
-#!/bin/sh
-CP='/usr/share/java/bcprov.jar:/usr/share/java/commons-lang/commons-lang.jar:/usr/share/java/pdftk/pdftk.jar'
-exec /usr/bin/java -cp "$CP" com.gitlab.pdftk_java.pdftk "$@"

Copied: pdftk/repos/community-any/pdftk.sh (from rev 1076725, pdftk/trunk/pdftk.sh)
===================================================================
--- pdftk.sh	                        (rev 0)
+++ pdftk.sh	2021-12-18 11:46:23 UTC (rev 1076726)
@@ -0,0 +1,3 @@
+#!/bin/sh
+CP='/usr/share/java/bcprov.jar:/usr/share/java/commons-lang/commons-lang.jar:/usr/share/java/pdftk/pdftk.jar'
+exec /usr/bin/java -cp "$CP" com.gitlab.pdftk_java.pdftk "$@"



More information about the arch-commits mailing list