jobcore/less/PKGBUILD-arch

45 lines
1.2 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
# Maintainer: Sébastien "Seblu" Luttringer <seblu@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgname=less
2023-05-05 16:18:25 +02:00
pkgver=633
pkgrel=1
2022-03-20 13:19:37 +01:00
epoch=1
pkgdesc='A terminal based program for viewing text files'
license=('GPL3')
arch=('x86_64')
url='https://www.greenwoodsoftware.com/less/'
depends=('glibc' 'ncurses' 'pcre2')
validpgpkeys=('AE27252BD6846E7D6EAE1DD6F153A7C833235259') # Mark Nudelman
source=("https://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.tar.gz"
2023-05-05 16:18:25 +02:00
"$pkgname-$pkgver.tar.gz.sig::https://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.sig")
sha256sums=('2f201d64b828b88af36dfe6cfdba3e0819ece2e446ebe6224813209aaefed04f'
'SKIP')
prepare() {
cd $pkgname-$pkgver
2023-05-05 16:18:25 +02:00
# apply patch from the source array (should be a pacman feature)
local src
for src in "${source[@]}"; do
src="${src%%::*}"
src="${src##*/}"
[[ $src = *.patch ]] || continue
echo "Applying patch $src..."
patch -Np1 < "../$src"
done
}
2022-03-20 13:19:37 +01:00
build() {
cd $pkgname-$pkgver
sh configure --prefix=/usr --sysconfdir=/etc --with-regex=pcre2
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et: