#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=gawk
pkgver=5.2.1
pkgrel=02
pkgdesc="GNU version of awk"
url="https://www.gnu.org/software/gawk/"
# groups=('base-devel')
depends=('sh' 'glibc' 'mpfr')
provides=('awk')
##  options=('debug')  ## uncomment this to have the debug pkg produced
source=(https://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.sig})

#prepare() {
#  cd ${pkgname}-${pkgver}
#
#  # https://bugs.gentoo.org/868567
#  patch -Np1 -i ../0001-Add-missing-UPREF.patch
#}
 
build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc --without-libsigsegv
  make
}

check() {
  cd ${pkgname}-${pkgver}
  make check
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}

#---- arch license gpg-key & sha256sums ----

arch=(x86_64)

license=('GPL')

validpgpkeys=('D1967C63788713177D861ED7DF597815937EC0D2') # Arnold Robbins

sha256sums=(529e7c8c6acf21ff3a6183f4d763c632810908989c24675c77995d51ac37b79c  # gawk-5.2.1.tar.gz
	27e39518586c9e40749cd3e0deff8af345a1f66f5f7653d25c04f09f53c4147d) # gawk-5.2.1.tar.gz.sig

##  2971dfea3bba111d83838adb62ba2b021ebd23bc69d64e70da231540b4af002d  gawk-5.2.1-02-x86_64.pkg.tar.lz

