aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-31 17:05:01 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-31 17:05:01 +0000
commit576f62e0e1dd0ad639706f5d8677027da6fb8659 (patch)
treeab71f09a4f6551c97049abf6e73733e4ef93c443
parentf9aad679e29673b08be67aeb3bcd3f792240df82 (diff)
downloadslackbuilds-576f62e0e1dd0ad639706f5d8677027da6fb8659.tar.gz
slackbuilds-576f62e0e1dd0ad639706f5d8677027da6fb8659.tar.bz2
mm update
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@80 370017ae-e619-0410-ac65-c121f96126d4
-rwxr-xr-xmm/mm.SlackBuild20
1 files changed, 14 insertions, 6 deletions
diff --git a/mm/mm.SlackBuild b/mm/mm.SlackBuild
index 39572ad5..b90bdc95 100755
--- a/mm/mm.SlackBuild
+++ b/mm/mm.SlackBuild
@@ -20,6 +20,7 @@ VERSION=${VERSION:=1.3.1}
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 ChangeLog INSTALL LICENSE PORTING README THANKS; do
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