pkgname=less pkgver=668 pkgrel=1 pkgdesc="A terminal based program for viewing text files" arch=('x86_64') url="https://www.greenwoodsoftware.com/less/" license=('GPL-3.0-or-later' 'BSD-2-Clause') depends=('glibc' 'ncurses' 'pcre2') source=(https://www.greenwoodsoftware.com/${pkgname}/${pkgname}-${pkgver}.tar.gz) sha256sums=(2819f55564d86d542abbecafd82ff61e819a3eec967faa36cd3e68f1596a44b8) build() { cd ${pkgname}-${pkgver} local configure_args=( --sysconfdir=/etc --with-regex=pcre2 ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install }