63 lines
1.6 KiB
Bash
63 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.9
|
|
pkgrel=01
|
|
pkgdesc='A string search utility'
|
|
url='https://www.gnu.org/software/grep/'
|
|
groups=('base-devel')
|
|
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=(abcd11409ee23d4caf35feb422e53bbac867014cfeed313bb5f488aca170b599 # grep-3.9.tar.xz
|
|
33efb8fe5019ed360e3e60322c99d4521bc1e50b6e3c962b4b563c7b3667f7fa) # grep-3.9.tar.xz.sig
|
|
|
|
## 960475aa48cf1e2fbff4ba5c8925e29e2b780d55519aa73a30f34982ea644714 grep-3.9-01-x86_64.pkg.tar.lz
|
|
|
|
|