mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-23 17:33:26 +08:00
grep update for /lib move, pcre changes
This commit is contained in:
parent
894f3b6d91
commit
b374918067
@ -1,14 +1,13 @@
|
||||
#
|
||||
# Chakra Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
||||
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||
# maintainer abveritas[at]chakra-project[dot]org>
|
||||
|
||||
pkgname=grep
|
||||
pkgver=2.9
|
||||
pkgrel=3
|
||||
pkgver=2.14
|
||||
pkgrel=1
|
||||
pkgdesc="A string search utility"
|
||||
arch=('i686' 'x86_64')
|
||||
arch=('x86_64')
|
||||
license=('GPL3')
|
||||
url="http://www.gnu.org/software/grep/grep.html"
|
||||
groups=('base')
|
||||
@ -16,7 +15,7 @@ depends=('glibc' 'pcre' 'sh')
|
||||
makedepends=('texinfo>=4.8a')
|
||||
install="${pkgname}.install"
|
||||
source=("ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz")
|
||||
md5sums=('25e41b2aa201104354740961ef36005a')
|
||||
md5sums=('d4a3f03849d1e17ce56ab76aa5a24cab')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
@ -27,9 +26,13 @@ build() {
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
@ -1,11 +1,9 @@
|
||||
infodir=/usr/share/info
|
||||
filelist=(grep.info)
|
||||
infodir=usr/share/info
|
||||
file=grep.info
|
||||
|
||||
post_install() {
|
||||
[ -x usr/bin/install-info ] || return 0
|
||||
for file in ${filelist[@]}; do
|
||||
install-info $infodir/$file.gz $infodir/dir 2> /dev/null
|
||||
done
|
||||
install-info $infodir/$file.gz $infodir/dir 2> /dev/null
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
@ -14,8 +12,6 @@ post_upgrade() {
|
||||
|
||||
pre_remove() {
|
||||
[ -x usr/bin/install-info ] || return 0
|
||||
for file in ${filelist[@]}; do
|
||||
install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
|
||||
done
|
||||
install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user