diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-08-29 19:32:50 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-08-29 19:32:50 +0000 |
commit | 94db1747c60d5c309eb370e40ff4d2d923b6593d (patch) | |
tree | e4f54ae134ab114f92048f5adf678e32313dd0ad /lzo | |
parent | c78c4ae9292db48ec04f7787ba53857d115053b9 (diff) | |
download | slackbuilds-94db1747c60d5c309eb370e40ff4d2d923b6593d.tar.gz slackbuilds-94db1747c60d5c309eb370e40ff4d2d923b6593d.tar.bz2 |
lzo update
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@76 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'lzo')
-rwxr-xr-x | lzo/lzo.SlackBuild | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/lzo/lzo.SlackBuild b/lzo/lzo.SlackBuild index 3f433cc2..338f3b5a 100755 --- a/lzo/lzo.SlackBuild +++ b/lzo/lzo.SlackBuild @@ -20,6 +20,7 @@ VERSION=${VERSION:=2.02} BUILD=${BUILD:=1rha} SRC_DIR=${SRC:=$CWD} TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} if [ "$ARCH" == "x86_64" ]; then LIBDIR=/usr/lib64 @@ -32,6 +33,9 @@ PACKAGE_EXT="gz" SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" URL="http://www.oberhumer.com/opensource/lzo/download/$SRC" +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + if [ "$PACKAGE_EXT" == "bz2" ]; then tarflag="j" else @@ -42,21 +46,21 @@ 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 NEWS 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 |