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

View File

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