jobcore/grep/PKGBUILD

59 lines
1.6 KiB
Bash

#!/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=grep
pkgver=3.10
pkgrel=01
pkgdesc='A string search utility'
url='https://www.gnu.org/software/grep/'
depends=('glibc' 'pcre2')
makedepends=('texinfo')
source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
prepare() {
cd $pkgname-$pkgver
# 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
msg2 "Applying patch $src..."
patch -Np1 < "../$src"
done
}
build() {
cd $pkgname-$pkgver
# configure option --without-included-regex removed in 3.7
# see: https://lists.gnu.org/archive/html/bug-grep/2021-08/msg00028.html
./configure --prefix=/usr
make
}
check() {
cd $pkgname-$pkgver
make check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL3')
validpgpkeys=('155D3FC500C834486D1EEA677FD9FCCB000BEEEE') # Jim Meyering
sha256sums=(24efa5b595fb5a7100879b51b8868a0bb87a71c183d02c4c602633b88af6855b # grep-3.10.tar.xz
e5d3fe66cfcaf31013650f7124d66170560586377c625c5010e6211ae6ed0d66) # grep-3.10.tar.xz.sig
## 7218cfaad2b3779ec5a3e420de441e9833cba7aab42e7622cef938419cb6fd50 grep-3.10-01-x86_64.pkg.tar.lz