core/grep/PKGBUILD

43 lines
1.0 KiB
Bash
Raw Normal View History

#
# Chakra Packages for Chakra, part of chakra-project.org
#
2010-03-13 23:25:19 +08:00
pkgname=grep
2015-01-05 22:32:39 +08:00
pkgver=2.21
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')
2010-03-28 19:57:40 +08:00
depends=('glibc' 'pcre' 'sh')
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})
2015-01-05 22:32:39 +08:00
md5sums=('43c48064d6409862b8a850db83c8038a'
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
}