pkgname=grep pkgver=3.11 pkgrel=1 pkgdesc="A string search utility" arch=('x86_64') url="https://www.gnu.org/software/grep/" license=('GPL-3.0-or-later') groups=('base' 'base-devel') depends=('glibc') source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz) sha256sums=(1db2aedde89d0dea42b16d9528f894c8d15dae4e190b59aecc78f5a951276eab) prepare() { cd ${pkgname}-${pkgver} sed -i "s/echo/#echo/" src/egrep.sh } build() { cd ${pkgname}-${pkgver} local configure_args=( ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install }