#!/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=texinfo
pkgver=7.0
pkgrel=01
pkgdesc='GNU documentation system for on-line information and printed output'
arch=(x86_64)
url='https://www.gnu.org/software/texinfo/'
groups=( jobbot )
depends=(ncurses gzip perl sh)
source=(https://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.xz{,.sig}
        texinfo-install.hook
        texinfo-remove.hook)
#        texinfo-pt-br-crash.patch)

#prepare() {
#  patch -d $pkgname-$pkgver -p1 < texinfo-pt-br-crash.patch # Avoid info crash for Brazillian Portuguese
#}

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

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

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

  install -dm755 "$pkgdir"/usr/share/libalpm/hooks/
  install -m644 texinfo-{install,remove}.hook "$pkgdir"/usr/share/libalpm/hooks/
}

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

license=(GPL3)

validpgpkeys=('EAF669B31E31E1DECBD11513DDBC579DAB37FBA9') # Gavin Smith

sha256sums=(20744b82531ce7a04d8cee34b07143ad59777612c3695d5855f29fba40fbe3e0  # texinfo-7.0.tar.xz
	93df5f25c4a1828b64cc2f42ff80b07f00a79c5ccd26353b8ae23e04f4607367  # texinfo-7.0.tar.xz.sig
	5409fc3aa8a35e8f3d901e96bc50c986f204d90ce6bface0a7d79d99b487f801  # texinfo-install.hook
	913ca8aac84386399b0a83ed0f6b04b5e6322da62f5c1d7ed31e1050ed37c1a9) # texinfo-remove.hook
#	73639d69b29ca8274225b16a2a0d51055f1ef76b4a65e9b5b65b5bb0a152f3c7) #  texinfo-pt-br-crash.patch


