diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a07ae2f008e3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=grep-git +pkgver=3.1.r5.ge183886 +pkgrel=1 +pkgdesc="A string search utility" +arch=('i686' 'x86_64') +url="https://www.gnu.org/software/grep/" +license=('GPL3') +depends=('glibc' 'pcre') +makedepends=('git' 'gettext' 'gperf' 'gzip' 'perl' 'rsync' 'tar' 'texinfo') +provides=('grep') +conflicts=('grep') +source=("git+https://git.savannah.gnu.org/git/grep.git") +sha256sums=('SKIP') + + +pkgver() { + cd "grep" + + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "grep" + + ./bootstrap + ./configure --prefix="/usr" --without-included-regex + make +} + +check() { + cd "grep" + + make check +} + +package() { + cd "grep" + + make DESTDIR="$pkgdir" install +} |