archrelease: copy trunk to extra-x86_64
[arch-packages.git] / less / trunk / PKGBUILD
blobb9b41047ea8aba68f6516760fc5bf16528a3ce26
1 # Maintainer: Sébastien "Seblu" Luttringer <seblu@archlinux.org>
2 # Contributor: Allan McRae <allan@archlinux.org>
3 # Contributor: judd <jvinet@zeroflux.org>
5 pkgname=less
6 pkgver=608
7 pkgrel=2
8 epoch=1
9 pkgdesc='A terminal based program for viewing text files'
10 license=('GPL3')
11 arch=('x86_64')
12 url='https://www.greenwoodsoftware.com/less/'
13 depends=('glibc' 'ncurses' 'pcre2')
14 validpgpkeys=('AE27252BD6846E7D6EAE1DD6F153A7C833235259') # Mark Nudelman
15 source=("https://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.tar.gz"
16         "$pkgname-$pkgver.tar.gz.sig::https://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.sig"
17         less-CVE-2022-46663.patch::https://github.com/gwsw/less/commit/a78e1351113cef564d790a730d657a321624d79c.patch)
18 sha256sums=('a69abe2e0a126777e021d3b73aa3222e1b261f10e64624d41ec079685a6ac209'
19             'SKIP'
20             '3862ce1d6ee0aacefe75274f04afc00a38474d4cf2f6be96feb6aaa226c9bd98')
22 prepare() {
23   cd $pkgname-$pkgver
24   patch -Np1 < ../less-CVE-2022-46663.patch
27 build() {
28   cd $pkgname-$pkgver
29   sh configure --prefix=/usr --sysconfdir=/etc --with-regex=pcre2
30   make
33 package() {
34   cd $pkgname-$pkgver
35   make DESTDIR="$pkgdir" install
38 # vim:set ts=2 sw=2 et: