Caleb Maclennan pushed to branch main at Arch Linux / Packaging / Packages / 
scribus


Commits:
aba82cb9 by Caleb Maclennan at 2025-02-11T17:38:01+03:00
Add protection to development releases don't get packaged

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -67,6 +67,16 @@ prepare() {
     # patch -Np1 < "$srcdir/fix_build_with_poppler_25.01.0.patch"
 }
 
+pkgver() {
+        # People regularly flag this OOD pointing to development releases, 
avoid mistakenly packaging them
+       if [[ $pkgver =~ ^[0-9]+\.[13579]+\.[0-9]+$ ]]; then
+               echo 'Odd-numbered minor version segments indicate development 
versions.' >&2
+               exit 1
+       else
+               echo "$pkgver"
+       fi
+}
+
 build() {
        cmake -B build -S "$_archive" \
                -D CMAKE_INSTALL_PREFIX=/usr \



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/scribus/-/commit/aba82cb9e60bf8d5bb7981e559bc5e31897181d3

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


Reply via email to