Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / 
epubcheck


Commits:
9c14b2a0 by Robin Candau at 2025-02-13T19:29:41+01:00
upgpkg: 5.2.1-2: Strip non-deterministic information from jar (e.g. timestamps) 
for reproducible builds

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,11 +1,12 @@
 pkgbase = epubcheck
        pkgdesc = The conformance checker for EPUB publications
        pkgver = 5.2.1
-       pkgrel = 1
+       pkgrel = 2
        url = https://github.com/w3c/epubcheck
        arch = any
        license = BSD-3-Clause
        makedepends = maven
+       makedepends = strip-nondeterminism
        depends = bash
        depends = java-runtime=21
        source = 
epubcheck-5.2.1.tar.gz::https://github.com/w3c/epubcheck/archive/refs/tags/v5.2.1.tar.gz


=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
 
 pkgname=epubcheck
 pkgver=5.2.1
-pkgrel=1
+pkgrel=2
 pkgdesc="The conformance checker for EPUB publications"
 arch=(any)
 url="https://github.com/w3c/epubcheck";
@@ -12,7 +12,10 @@ depends=(
   bash
   java-runtime=$_java_version
 )
-makedepends=(maven)
+makedepends=(
+  maven
+  strip-nondeterminism
+)
 source=(
   $pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz
   $pkgname.sh
@@ -36,6 +39,10 @@ build() {
 
   cd $pkgname-$pkgver
   mvn "${maven_options[@]}"
+
+  # Strip non-deterministic information from the jar file (e.g. timestamps and 
filesystem ordering)
+  # Required for reproducible builds
+  find . -name "$pkgname.jar" -exec strip-nondeterminism {} +
 }
 
 package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/epubcheck/-/commit/9c14b2a09b54b8d1096ffcd2be22295cc5c2636b

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/epubcheck/-/commit/9c14b2a09b54b8d1096ffcd2be22295cc5c2636b
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to