aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.dk>2017-10-25 02:29:12 +0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-10-27 13:24:09 +0000
commitd52ab46d1e17772e87f1d55139aa9712ad5e3b23 (patch)
tree63db7c38d314bfb7cd478bc2ab56c08c4acdb05d
parent2a6667f2595e8e365d481fbbbb710dfa7aebfc1c (diff)
downloadaports-d52ab46d1e17772e87f1d55139aa9712ad5e3b23.tar.gz
aports-d52ab46d1e17772e87f1d55139aa9712ad5e3b23.tar.bz2
aports-d52ab46d1e17772e87f1d55139aa9712ad5e3b23.tar.xz
main/gawk: upgrade to 4.2.0; modernize
-rw-r--r--main/gawk/APKBUILD20
1 files changed, 9 insertions, 11 deletions
diff --git a/main/gawk/APKBUILD b/main/gawk/APKBUILD
index 9eab5768ad..e01155fb82 100644
--- a/main/gawk/APKBUILD
+++ b/main/gawk/APKBUILD
@@ -1,8 +1,9 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Michael Mason <ms13sp@gmail.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
+# Contributor: TBK <alpine@jjtc.eu>
pkgname=gawk
-pkgver=4.1.4
+pkgver=4.2.0
pkgrel=0
pkgdesc="GNU awk pattern-matching language"
url="http://www.gnu.org/software/gawk/gawk.html"
@@ -10,14 +11,14 @@ arch="all"
license="GPL"
subpackages="$pkgname-doc"
source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"
+builddir="$srcdir/$pkgname-$pkgver"
-_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- cd "$_builddir"
+ cd "$builddir"
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -25,16 +26,13 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --disable-nls \
- || return 1
- make || return 1
+ --disable-nls
+ make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
-md5sums="4e7dbc81163e60fd4f0b52496e7542c9 gawk-4.1.4.tar.xz"
-sha256sums="53e184e2d0f90def9207860531802456322be091c7b48f23fdc79cda65adc266 gawk-4.1.4.tar.xz"
-sha512sums="6a0e9cf086544212f54b54261dcd517b611aaf495ef99c4b7740d07e363bb00c5632f3d7fd5e12a954d5aa9793764162a57453e0e18884b29c6c54b5f444c097 gawk-4.1.4.tar.xz"
+sha512sums="3076b2f42e43fff0ce63dcaa3fb749ce421473d0abc3e1e2d9dd375207d3e35c98d5bf91c3179f49156e8a4977424c16bb2d3d662846ad487153729dd4cfeb4c gawk-4.2.0.tar.xz"