diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-08-29 19:18:30 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-08-29 19:18:30 +0000 |
commit | 3052511a51ec982fa61014ee39a0e257e54ba59c (patch) | |
tree | 2ba31fcc6aeeea49a17235a3650c78edc672f166 /libsafe/libsafe.SlackBuild | |
parent | eda08c3e94625189f8fac9539b9fea32d5ca8c19 (diff) | |
download | slackbuilds-3052511a51ec982fa61014ee39a0e257e54ba59c.tar.gz slackbuilds-3052511a51ec982fa61014ee39a0e257e54ba59c.tar.bz2 |
libsafe update
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@71 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'libsafe/libsafe.SlackBuild')
-rwxr-xr-x | libsafe/libsafe.SlackBuild | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/libsafe/libsafe.SlackBuild b/libsafe/libsafe.SlackBuild index 033ac5be..552f8b4e 100755 --- a/libsafe/libsafe.SlackBuild +++ b/libsafe/libsafe.SlackBuild @@ -21,6 +21,7 @@ TMP=${TMP:=/tmp} VERSION=2.0.16 SRCPKG=2.0-16 SRC_DIR=${SRC:=$CWD} +REPOS=${REPOS:=$TMP} if [ "$ARCH" == "x86_64" ]; then LIBDIR=lib64 @@ -33,17 +34,23 @@ fi RTOOL="wget" SRC="$PACKAGE-$SRCPKG.tar.gz" URL="ftp://ftp.slackware.com/pub/slackware/slackware-10.2/extra/source/libsafe-$SRCPKG/$SRC" -PKG=$TMP/package-libsafe + +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" +PKG=$TMP/package-$PACKAGE +rm -rf $TMP +mkdir -p $TMP cd $TMP -rm -rf $PKG -mkdir -p $PKG + tar xzvf $SRC_DIR/$SRC cd libsafe-$SRCPKG + chown -R root.root . find . -perm 775 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; @@ -61,5 +68,9 @@ cp -a \ mkdir -p $PKG/usr/man/man8 cat doc/libsafe.8 | gzip -9c > $PKG/usr/man/man8/libsafe.8.gz cd $PKG -makepkg -l y -c n $TMP/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz +makepkg -l y -c n $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi |