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

pkgname=gperf 
pkgver=3.1 
pkgrel=03 
pkgdesc="Perfect hash function generator" 
arch=('x86_64') 
url="https://www.gnu.org/software/gperf/" 
depends=('gcc-libs' 'texinfo') 
source=("https://ftp.gnu.org/pub/gnu/gperf/${pkgname}-${pkgver}.tar.gz"{,.sig}) 
options=('!makeflags')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr \
    --docdir=/usr/share/gperf/doc/
  make
}

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

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

#---- license gpg-key sha256sums ----

license=('GPL3') 

validpgpkeys=('EDEB87A500CC0A211677FBFD93C08C88471097CD') # Marcel Schaible <marcel.schaible@studium.fernuni-hagen.de>

sha1sums=('e3c0618c2d2e5586eda9498c867d5e4858a3b0e2'
          'SKIP')

sha256sums=(588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2 # gperf-3.1.tar.gz
	0554c9102d257d266bb4d9fb4bf76737abcecfc84a06884de84f8f8ff21c23e0) #  gperf-3.1.tar.gz.sig
