From f1ba62b3676490ec4dc78e5dd9b9f54f67dc48fe Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Sat, 26 Apr 2008 10:55:49 +0000 Subject: [PATCH] Update to 6.11 --- coreutils/build.sh | 71 ++++++++++------------------------------- coreutils/meta/pkgdef | 6 ++-- coreutils/meta/relnotes | 27 ++++++++++++++++ 3 files changed, 47 insertions(+), 57 deletions(-) create mode 100644 coreutils/meta/relnotes diff --git a/coreutils/build.sh b/coreutils/build.sh index 0ad1909..f0d624a 100755 --- a/coreutils/build.sh +++ b/coreutils/build.sh @@ -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=coreutils -version=5.2.1 +topdir=coreutils +version=6.11 pkgver=1 -source[0]=$topdir-$version.tar.bz2 +source[0]=$topdir-$version.tar.gz # If there are no patches, simply comment this #patch[0]= # Source function library -. ${HOME}/buildpkg/scripts/buildpkg.functions +. ${BUILDPKG_BASE}/scripts/buildpkg.functions -# Define script functions and register them -METHODS="" -reg() { - METHODS="$METHODS $1" -} +# Global settings +export CPPFLAGS="-I/usr/tgcware/include" +export LDFLAGS="-L/usr/tgcware/lib -R/usr/tgcware/lib" reg prep prep() @@ -32,17 +31,19 @@ prep() reg build build() { - export LDFLAGS="-R/usr/local/lib" generic_build } +reg check +check() +{ + generic_check +} + reg install install() { generic_install DESTDIR - $RM -f ${stagedir}${prefix}/${_infodir}/dir - # We're not installing su so nuke the manpage... - $RM -f ${stagedir}${prefix}/${_mandir}/man1/su.1 doc NEWS THANKS THANKS-to-translators TODO README AUTHORS ChangeLog } @@ -61,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 $* diff --git a/coreutils/meta/pkgdef b/coreutils/meta/pkgdef index 39b744c..d1e67b4 100644 --- a/coreutils/meta/pkgdef +++ b/coreutils/meta/pkgdef @@ -1,7 +1,7 @@ [coreutils] -pkgname="$pkgprefix""$topdir" -name="GNU Coreutils" -pkgcat="application" +pkgname="${pkgprefix}coreut" +name="coreutils - GNU coreutils" +pkgcat="system" pkgvendor="http://www.gnu.org" pkgdesc="Collection of basic file, shell and text manipulation utilities" pkgver="$pkgver" diff --git a/coreutils/meta/relnotes b/coreutils/meta/relnotes new file mode 100644 index 0000000..bd83629 --- /dev/null +++ b/coreutils/meta/relnotes @@ -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 +--------------------