56 lines
1.5 KiB
Bash
56 lines
1.5 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"
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=grep
|
|
pkgver=3.7
|
|
pkgrel=01
|
|
pkgdesc='A string search utility'
|
|
arch=('x86_64')
|
|
url='https://www.gnu.org/software/grep/'
|
|
groups=('base-devel')
|
|
depends=('glibc' 'pcre')
|
|
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
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('GPL3')
|
|
|
|
validpgpkeys=('155D3FC500C834486D1EEA677FD9FCCB000BEEEE') # Jim Meyering
|
|
|
|
sha256sums=(5c10da312460aec721984d5d83246d24520ec438dd48d7ab5a05dbc0d6d6823c # grep-3.7.tar.xz
|
|
d79a0137eb803938ff47dc366825d05d1a042457f74acc264a361a84428a5de7) # grep-3.7.tar.xz.sig
|