#!/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=dialog
pkgver=1.3_20240101
pkgrel=01
epoch=1
pkgdesc="A tool to display dialog boxes from shell scripts"
url="https://invisible-island.net/dialog/"
depends=('sh' 'ncurses')
provides=('libdialog.so')
source=(https://invisible-mirror.net/archives/$pkgname/$pkgname-${pkgver/_/-}.tgz{,.asc})

build() {
  cd "$srcdir/$pkgname-${pkgver/_/-}"

  ./configure \
    --prefix=/usr \
    --enable-nls \
    --with-libtool \
    --with-ncursesw
  make
}

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

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

arch=(x86_64)

license=('LGPL2.1')

validpgpkeys=('19882D92DDA4C400C22C0D56CC2AF4472167BE03') # Thomas E. Dickey (self-signed w/o SHA1) <dickey@invisible-island.net>

sha256sums=(9419eb52b95837312a76ccb26002c5d624fab53abde0859f1c7364179dc0ebad  # dialog-1.3-20240101.tgz
	e6d21c3ff82fc84c9d68ed908859d6a98edd6c8a6650cf3bd5c9c3eb662da37c) # dialog-1.3-20240101.tgz.asc

##  02f41d1e220c502bc0a016cd2b5cbd339aaa7a40a9e4b34196828c4135db8c4a  dialog-1_1.3_20240101-01-x86_64.pkg.tar.lz

