]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
simplepkg: rebuilt from mkbuild
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Fri, 9 May 2008 00:39:21 +0000 (00:39 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Fri, 9 May 2008 00:39:21 +0000 (00:39 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1880 370017ae-e619-0410-ac65-c121f96126d4

sys/apps/simplepkg/simplepkg.SlackBuild

index e1087890ab56f3032ae80a76fb6503d12f5d398c..8579a57ad2cbb0e82566671f813879b70c8d8d21 100755 (executable)
@@ -77,11 +77,17 @@ mkdir -p "$REPOS" || exit $ERROR_MKDIR
 mkdir -p "$PKG_WORK" || exit $ERROR_MKDIR
 
 # Get svn source code
-[ "`find "$SRC_DIR/" -name .svn`" != "" ] && SVN_ACTION="update" || SVN_ACTION="checkout"
 cd "$SRC_DIR"
-svn $SVN_ACTION svn://slack.sarava.org/simplepkg/trunk $PKG_SRC || exit $ERROR_VCS
-SND_DIR="`ls -l | awk '/^d/ { print $NF }'`"
-cd $SND_DIR
+SND_DIR="`basename svn://slack.sarava.org/simplepkg/trunk`"
+
+if [ "`find "$SRC_DIR/" -name .svn`" != "" && -d "$SRC_DIR/$SND_DIR" ]; then
+  cd $SND_DIR
+  svn update || exit $ERROR_VCS
+else
+  svn checkout svn://slack.sarava.org/simplepkg/trunk $SND_DIR || exit $ERROR_VCS
+  cd $SND_DIR
+fi
+
 PKG_VERSION="`svn info | awk '/Last Changed Rev:/ { print $4 }'`_svn"
 
 # Copy svn source
@@ -93,30 +99,6 @@ cd "$PKG_SRC"
 # Install
 make install DESTDIR="$PKG" || exit $ERROR_INSTALL
 
-# Add package description (slack-desc)
-mkdir -p "$PKG/install" || exit $ERROR_MKDIR
-cat << EODESC > "$PKG/install/slack-desc"
-# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description. Line
-# up the first '|' above the ':' following the base package name, and the '|'
-# on the right side marks the last column you can put a character in. You must
-# make exactly 11 lines for the formatting to be correct.  It's also
-# customary to leave one space after the ':'.
-
-         |-----handy-ruler----------------------------------------------------|
-simplepkg: simplepkg (slackware management system)
-simplepkg:
-simplepkg: simplepkg is a very small set of scripts intended to help slackware
-simplepkg: users and developers, like the createpkg packaging tool, simplaret
-simplepkg: package retrieval, mkjail chroot installer and templatepkg template
-simplepkg: management system.
-simplepkg: 
-simplepkg:
-simplepkg:
-simplepkg:
-simplepkg:
-EODESC
-
 # Build the package
 cd "$PKG"
 makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG