[arch-commits] Commit in autoconf/trunk (PKGBUILD)
Lukas Fleischer
lfleischer at archlinux.org
Tue Nov 19 16:07:28 UTC 2019
Date: Tuesday, November 19, 2019 @ 16:07:27
Author: lfleischer
Revision: 369437
Add proper quoting to paths
Modified:
autoconf/trunk/PKGBUILD
----------+
PKGBUILD | 44 ++++++++++++++++++++++----------------------
1 file changed, 22 insertions(+), 22 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-19 15:54:22 UTC (rev 369436)
+++ PKGBUILD 2019-11-19 16:07:27 UTC (rev 369437)
@@ -1,4 +1,5 @@
-# Maintainer: Allan McRae <allan at archlinux.org>
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Allan McRae <allan at archlinux.org>
# Contributor: Andreas Radke <andyrtr at archlinux.org>
pkgname=autoconf
@@ -12,7 +13,7 @@
depends=('awk' 'm4' 'diffutils' 'sh')
makedepends=('help2man') # needed while perl patch is present
checkdepends=('gcc-fortran')
-source=(https://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz{,.sig}
+source=("https://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz"{,.sig}
'0001-autoconf-2.69-perl-5.22-autoscan.patch'
'0002-autoconf-2.69-perl-5.28.patch'
'0003-autoconf-2.69-libtool-compatibility.patch'
@@ -27,37 +28,36 @@
prepare() {
- cd ${pkgname}-${pkgver}
+ cd "${pkgname}-${pkgver}"
- # fix incompatibility with recent perl
- patch -p1 -i $srcdir/0001-autoconf-2.69-perl-5.22-autoscan.patch
- patch -p1 -i $srcdir/0002-autoconf-2.69-perl-5.28.patch
+ # fix incompatibility with recent perl
+ patch -p1 -i "$srcdir"/0001-autoconf-2.69-perl-5.22-autoscan.patch
+ patch -p1 -i "$srcdir"/0002-autoconf-2.69-perl-5.28.patch
- # fix tesetsuite failures with recent libtool
- patch -p1 -i $srcdir/0003-autoconf-2.69-libtool-compatibility.patch
+ # fix tesetsuite failures with recent libtool
+ patch -p1 -i "$srcdir"/0003-autoconf-2.69-libtool-compatibility.patch
- patch -p1 -i $srcdir/0004-Port-tests-to-Bash-5.patch
+ patch -p1 -i "$srcdir"/0004-Port-tests-to-Bash-5.patch
}
-
+
build() {
- cd ${pkgname}-${pkgver}
- ./configure --prefix=/usr
- make
+ cd "${pkgname}-${pkgver}"
+ ./configure --prefix=/usr
+ make
}
check() {
- cd ${srcdir}/${pkgname}-${pkgver}
- make check
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make check
}
package() {
- cd ${srcdir}/${pkgname}-${pkgver}
- make DESTDIR=${pkgdir} install
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
- # license exception
- install -Dm644 COPYING.EXCEPTION \
- $pkgdir/usr/share/licenses/autoconf/COPYING.EXCEPTION
+ # license exception
+ install -Dm644 COPYING.EXCEPTION "$pkgdir"/usr/share/licenses/autoconf/COPYING.EXCEPTION
- # remove unwanted file
- rm -f ${pkgdir}/usr/share/info/standards.info
+ # remove unwanted file
+ rm -f "$pkgdir"/usr/share/info/standards.info
}
More information about the arch-commits
mailing list