Update to 2.5.3

This commit is contained in:
Tom G. Christensen 2008-04-20 10:05:38 +00:00 committed by tgc
parent 3657a85e13
commit 1fab800bc5
3 changed files with 48 additions and 52 deletions

View File

@ -3,25 +3,24 @@
# This is a generic build.sh script
# It can be used nearly unmodified with many packages
#
# The concept of "method" registering and the logic that implements it was shamelessly
# stolen from jhlj's Compile.sh script :)
# build.sh helper functions
. ${BUILDPKG_BASE}/scripts/build.sh.functions
#
###########################################################
# Check the following 4 variables before running the script
topdir=grep
version=2.5
pkgver=2
version=2.5.3
pkgver=1
source[0]=$topdir-$version.tar.bz2
# If there are no patches, simply comment this
patch[0]=grep-2.5-symlink-destdir.patch
#patch[0]=
# Source function library
. ${BUILDPKG_BASE}/scripts/buildpkg.functions
# Define script functions and register them
METHODS=""
reg() {
METHODS="$METHODS $1"
}
# Global settings
export CPPFLAGS="-I$prefix/include"
export LDFLAGS="-L$prefix/lib -R$prefix/lib"
reg prep
prep()
@ -35,11 +34,17 @@ build()
generic_build
}
reg check
check()
{
generic_check
}
reg install
install()
{
generic_install DESTDIR
$RM -f $stagedir$prefix/$_infodir/dir
doc NEWS COPYING AUTHORS THANKS
}
reg pack
@ -57,42 +62,4 @@ distclean()
###################################################
# No need to look below here
###################################################
reg all
all()
{
for METHOD in $METHODS
do
case $METHOD in
all*|*clean) ;;
*) $METHOD
;;
esac
done
}
reg
usage() {
echo Usage $0 "{"$(echo $METHODS | tr " " "|")"}"
exit 1
}
OK=0
for METHOD in $*
do
METHOD=" $METHOD *"
if [ "${METHODS%$METHOD}" == "$METHODS" ] ; then
usage
fi
OK=1
done
if [ $OK = 0 ] ; then
usage;
fi
for METHOD in $*
do
( $METHOD )
done
build_sh $*

View File

@ -1,11 +1,13 @@
[grep]
pkgname="$pkgprefix""$topdir"
name="GNU grep"
name="grep - GNU grep"
pkgcat="application"
pkgvendor="http://www.gnu.org"
pkgvendor="http://www.gnu.org/software/grep/grep.html"
pkgdesc="Find lines that match entered patterns"
pkgver="$pkgver"
files(-,root,bin)
default_docs
$_bindir
$_infodir
$_mandir
$_sharedir/locale

27
grep/meta/relnotes Normal file
View File

@ -0,0 +1,27 @@
PACKAGE DETAILS
---------------
Name: %%PKGNAME%%
Version: %%SOURCE_AND_VER%%
Vendor: %%VENDOR%%
Packager: %%PKGEDBY%%
Source (sha1sum):
%%SOURCE_SHA1SUM%%
BUILD DETAILS
-------------
Compiler:
%%COMPILER%%
Environment:
%%ENVIRONMENT%%
Configure:
%%CONFIGURE%%
KNOWN DEPENDENCIES
------------------
%%DEPENDENCIES%%
ERRORS/MISCELLANEOUS
--------------------