#!/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=yelp
pkgver=41.2
pkgrel=01
pkgdesc="Get help with GNOME"
url="https://wiki.gnome.org/Apps/Yelp"
arch=(x86_64)
depends=(webkit2gtk-4.1 yelp-xsl libxslt xz bzip2)
makedepends=(gtk-doc itstool autoconf-archive git appstream-glib)
#groups=()
_commit=72d73437a3d444739d722e580153f2dd8ee50f1d  # tags/41.2^0
source=("git+https://gitlab.gnome.org/GNOME/yelp.git#commit=$_commit")

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/-/+/g'
}

prepare() {
  cd $pkgname
  NOCONFIGURE=1 ./autogen.sh
}

build() {
  cd $pkgname
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
    --disable-static --enable-gtk-doc --enable-compile-warnings=minimum
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

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

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

license=(GPL)

sha256sums=('SKIP')

sha256sums=(a)
