diff options
| author | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
|---|---|---|
| committer | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
| commit | c82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch) | |
| tree | 56d864b5a5c6c145edd96178ae219a8f90e191a6 /core/grep/MAKEPKG | |
| download | ports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz | |
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'core/grep/MAKEPKG')
| -rw-r--r-- | core/grep/MAKEPKG | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/core/grep/MAKEPKG b/core/grep/MAKEPKG new file mode 100644 index 0000000..3d8ae00 --- /dev/null +++ b/core/grep/MAKEPKG @@ -0,0 +1,39 @@ +#!/bin/mkpkg +# description: GNU grep +# url: https://www.gnu.org/software/grep/ + +name=grep +version=3.12 +release=2 +depends=(pcre2) +source=(https://ftp.gnu.org/gnu/$name/$name-$version.tar.xz) + +sha256sums=( + "2649b27c0e90e632eadcd757be06c6e9a4f48d941de51e7c0f83ff76408a07b9" +) + +build() { + cd $name-$version + + ./configure \ + --prefix=/ \ + --bindir=/bin \ + --mandir=/usr/share/man \ + --disable-nls + + make + make install DESTDIR=$PKG + + printf '#!/bin/sh\nexec grep -E "$@"\n' > $PKG/bin/egrep + printf '#!/bin/sh\nexec grep -F "$@"\n' > $PKG/bin/fgrep + chmod +x $PKG/bin/egrep $PKG/bin/fgrep + + rm -rf $PKG/share +} + +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh |
