core/grep/PKGBUILD

38 lines
975 B
Bash
Raw Normal View History

2010-03-13 23:25:19 +08:00
pkgname=grep
2016-03-16 22:28:06 +08:00
pkgver=2.24
pkgrel=1
2010-03-13 23:25:19 +08:00
pkgdesc="A string search utility"
arch=('x86_64')
2010-03-13 23:25:19 +08:00
license=('GPL3')
url="http://www.gnu.org/software/grep/grep.html"
groups=('base')
2016-03-16 22:28:06 +08:00
depends=('glibc' 'pcre')
2014-02-10 06:14:56 +08:00
makedepends=('texinfo')
install="${pkgname}.install"
2014-02-10 06:14:56 +08:00
source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz{,.sig})
2016-03-16 22:28:06 +08:00
md5sums=('f1c980134c04692a90078e87283074b6'
2014-02-10 06:14:56 +08:00
'SKIP')
# If pcre get a major upgrade in order to compile grep you must:
# downgrade pcre, compile grep static by adding LDFLAGS="$LDFLAGS -static"
# install the static version of grep, compile/install the new pcre
# compile normally grep
# this is needed because grep needs grep to compile (is hardcoded in the source)
2010-03-13 23:25:19 +08:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr \
--without-included-regex
make
2010-03-13 23:25:19 +08:00
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
make check
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}