aboutsummaryrefslogtreecommitdiff
path: root/grub/grub.SlackBuild
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-29 18:32:42 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-29 18:32:42 +0000
commita927e36c38260aae79fdc8dfd8a8ce4427e25d8c (patch)
tree9236f8c9789f457301999d5be68df675810508fb /grub/grub.SlackBuild
parent3411f8ff15a346f9fa936fd0f2169f48ce71a5c5 (diff)
downloadslackbuilds-a927e36c38260aae79fdc8dfd8a8ce4427e25d8c.tar.gz
slackbuilds-a927e36c38260aae79fdc8dfd8a8ce4427e25d8c.tar.bz2
grub update
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@65 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'grub/grub.SlackBuild')
-rwxr-xr-xgrub/grub.SlackBuild20
1 files changed, 14 insertions, 6 deletions
diff --git a/grub/grub.SlackBuild b/grub/grub.SlackBuild
index 75e693e2..da275b23 100755
--- a/grub/grub.SlackBuild
+++ b/grub/grub.SlackBuild
@@ -20,6 +20,7 @@ VERSION=${VERSION:=0.96}
BUILD=${BUILD:=1rha}
SRC_DIR=${SRC:=$CWD}
TMP=${TMP:=/tmp}
+REPOS=${REPOS:=$TMP}
if [ "$ARCH" == "x86_64" ]; then
LIBDIR=/usr/lib64
@@ -38,25 +39,28 @@ else
tarflag="z"
fi
+SRC_DIR="$SRC_DIR/$PACKAGE"
+mkdir -p $SRC_DIR
+
if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
wget "$URL" -O "$SRC_DIR/$SRC"
fi
+TMP="$TMP/$PACKAGE"
+rm -rf $TMP
+mkdir -p $TMP
cd $TMP
-rm -rf package-$PACKAGE
-mkdir package-$PACKAGE
-cd package-$PACKAGE
tar xvf$tarflag $SRC_DIR/$SRC
cd $PACKAGE-$VERSION
./configure --prefix=/usr --libdir=$LIBDIR
make
-make DESTDIR=$TMP/package-$PACKAGE/$PACKAGE install
+make DESTDIR=$TMP/package-$PACKAGE install
CWD="`pwd`"
-cd $TMP/package-$PACKAGE/$PACKAGE
+cd $TMP/package-$PACKAGE
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
@@ -91,5 +95,9 @@ for file in AUTHORS BUGS COPYING ChangeLog INSTALL MAINTENANCE NEWS README THANK
cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/
done
-makepkg -c y -l y $TMP/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz
+makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz
+
+if [ "$CLEANUP" == "yes" ]; then
+ rm -rf $TMP
+fi