update to 12.3: less

This commit is contained in:
wyj
2025-03-25 18:42:14 -04:00
parent 0519bf4c9d
commit b9a5223f88
+27
View File
@@ -0,0 +1,27 @@
pkgname=less
pkgver=668
pkgdesc='A terminal based program for viewing text files'
license=('GPL-3.0-or-later' 'BSD-2-Clause')
homepage='https://www.greenwoodsoftware.com/less/'
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://www.greenwoodsoftware.com/${pkgname}/${sources[0]}")
md5sums=("d72760386c5f80702890340d2f66c302")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
./configure --prefix=/usr --sysconfdir=/etc
make
}
src_check() {
make check
}
src_install() {
make DESTDIR="${pkgdir}" install
install -Dm644 {,"$pkgdir"/usr/share/licenses/$pkgname/}LICENSE
}