From a9b2fd84a128e02c366bdd184530969d11495f8a Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Sat, 7 Sep 2024 23:18:11 +0800 Subject: [PATCH] gawk 5.3.0-1 --- gawk/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 gawk/PKGBUILD diff --git a/gawk/PKGBUILD b/gawk/PKGBUILD new file mode 100644 index 0000000..3986e09 --- /dev/null +++ b/gawk/PKGBUILD @@ -0,0 +1,42 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=gawk +pkgver=5.3.0 +pkgrel=1 +pkgdesc="GNU version of awk" +arch=('x86_64') +url="https://www.gnu.org/software/gawk/" +license=('GPL-3.0-or-later') +groups=('base' 'base-devel') +depends=('bash' 'glibc' 'mpfr') +source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz) +sha256sums=(ca9c16d3d11d0ff8c69d79dc0b47267e1329a69b39b799895604ed447d3ca90b) + +prepare() { + cd ${pkgname}-${pkgver} + + sed -i 's/extras//' Makefile.in +} + +build() { + cd ${pkgname}-${pkgver} + + ${CONFIGURE} + + make +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install + + ln -sv gawk.1 ${pkgdir}/usr/share/man/man1/awk.1 + + install -vdm755 ${pkgdir}/usr/share/doc/${pkgname}-${pkgver} + cp -v doc/{awkforai.txt,*.{eps,pdf,jpg}} ${pkgdir}/usr/share/doc/${pkgname}-${pkgver} +}