Date: Friday, March 24, 2023 @ 19:04:08
  Author: dvzrv
Revision: 471979

upgpkg: mtools 1:4.0.43-1: Upgrade to 4.0.43.

Use bash arrays with one entry per line for better handling.
Move configure options to local bash array for better handling.

Modified:
  mtools/trunk/PKGBUILD

----------+
 PKGBUILD |   29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-24 18:56:37 UTC (rev 471978)
+++ PKGBUILD    2023-03-24 19:04:08 UTC (rev 471979)
@@ -3,7 +3,7 @@
 # Contributor: Tom Newsom <[email protected]>
 
 pkgname=mtools
-pkgver=4.0.42
+pkgver=4.0.43
 pkgrel=1
 epoch=1
 pkgdesc="A collection of utilities to access MS-DOS disks"
@@ -10,8 +10,14 @@
 arch=(x86_64)
 url="https://www.gnu.org/software/mtools/";
 license=(GPL3)
-depends=(bash glibc)
-makedepends=(libx11 texinfo)
+depends=(
+  bash
+  glibc
+)
+makedepends=(
+  libx11
+  texinfo
+)
 optdepends=(
   'libx11: required by floppyd'
   'libxau: required by floppyd'
@@ -18,9 +24,9 @@
 )
 backup=(etc/$pkgname.conf)
 source=(https://ftp.gnu.org/gnu/mtools/$pkgname-$pkgver.tar.bz2{,.sig})
-sha512sums=('fd8d56d2dea9ce5e2b311b29ebdd4d89ec7baaf5f2fbfdc85019d480eff4d198ebf0e591c0f28ee1e39d8b81d49d7d4e9ed94b0e94e5b02ce9bbc03632124811'
+sha512sums=('b70e483688124a653dd333ab127494dab12d413809680a4846dc4ae5c166a0b9938a2ab290e518c1f1a5b18ed96d2c2a29d92d61b16b772a4ab5e495379fe410'
             'SKIP')
-b2sums=('07afec0aea49427ec71ae8ddde9c1dceb33b2533e9acbde3564b0715efce784b5ea8c2122ff588f84e42435abb73ac9912520fd654a078bf0336e62f35f3ce2a'
+b2sums=('d000839bbb6bc647eb5a32b08b40b1350cd0a85fd564f0705ecbfe20f8f4ef21bf2d59cd0ccd7a159c829c019c6c2f3cbdef82ff3f4a9e8828cc13d44ddabd1d'
         'SKIP')
 validpgpkeys=('51A23D9D7C4DF41AA48FA893E99CF5537790B839') # Alain KNAFF 
<[email protected]>
 
@@ -30,12 +36,15 @@
 }
 
 build() {
+  local configure_options=(
+    --prefix=/usr
+    --mandir=/usr/share/man
+    --infodir=/usr/share/info
+    --sysconfdir=/etc
+  )
+
   cd $pkgname-$pkgver
-  ./configure \
-    --prefix=/usr \
-    --mandir=/usr/share/man \
-    --infodir=/usr/share/info \
-    --sysconfdir=/etc
+  ./configure "${configure_options[@]}"
   make
 }
 

Reply via email to