[arch-commits] Commit in pigeonhole/trunk (PKGBUILD)

Thore Bödecker foxxx0 at archlinux.org
Wed Aug 12 13:29:08 UTC 2020


    Date: Wednesday, August 12, 2020 @ 13:29:08
  Author: foxxx0
Revision: 676351

upgpkg: pigeonhole 0.5.11-1: update to upstream release 0.5.11 for dovecot 2.3.11.3

Modified:
  pigeonhole/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-12 13:28:44 UTC (rev 676350)
+++ PKGBUILD	2020-08-12 13:29:08 UTC (rev 676351)
@@ -8,12 +8,14 @@
 # This must be built against the version of dovecot being used,
 # else mail delivery will fail.
 # Specify the version of dovecot to be used here:
-_dcpkgver=2.3.10.1
+_dcpkgver=2.3.11.3
 # Make sure to bump pkgrel if changing this.
 
+_dcmajor="$(awk -F'.' 'BEGIN{OFS=FS} NF{NF--};1' <<< "${_dcpkgver}")"
+
 pkgname=pigeonhole
-pkgver=0.5.10
-pkgrel=2
+pkgver=0.5.11
+pkgrel=1
 
 pkgdesc='Sieve implementation for Dovecot'
 url='https://pigeonhole.dovecot.org/'
@@ -24,9 +26,9 @@
 
 conflicts=('dovecot-sieve' 'pigeonhole-hg')
 
-source=("https://pigeonhole.dovecot.org/releases/2.3/dovecot-2.3-pigeonhole-${pkgver}.tar.gz"{,.sig})
+source=("https://pigeonhole.dovecot.org/releases/2.3/dovecot-${_dcmajor}-pigeonhole-${pkgver}.tar.gz"{,.sig})
 
-sha256sums=('48c89cc9f3caa9c5f2454f9dcca74fe251a99749a38062bfab7e5017d329605e'
+sha256sums=('bb7bebdccf98521902e481ec47c2c30a902d33b05ed7587b557c00dc62ffbaa2'
             'SKIP')
 validpgpkeys=(
   '42F3CD50D4F25A41833BEE3704D62B1E3DFBB4F4' # Stephan Bosch <stephan at rename-it.nl>
@@ -35,7 +37,7 @@
 
 
 prepare() {
-  cd "dovecot-2.3-pigeonhole-${pkgver}"
+  cd "dovecot-${_dcmajor}-pigeonhole-${pkgver}"
 
   local filename
   for filename in "${source[@]}"; do
@@ -46,7 +48,7 @@
 }
 
 build() {
-  cd "dovecot-2.3-pigeonhole-${pkgver}"
+  cd "dovecot-${_dcmajor}-pigeonhole-${pkgver}"
 
   ./configure \
     --prefix=/usr \
@@ -57,12 +59,12 @@
 }
 
 check() {
-  cd "dovecot-2.3-pigeonhole-${pkgver}"
+  cd "dovecot-${_dcmajor}-pigeonhole-${pkgver}"
   make check
 }
 
 package() {
-  cd "dovecot-2.3-pigeonhole-${pkgver}"
+  cd "dovecot-${_dcmajor}-pigeonhole-${pkgver}"
 
   make DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list