diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2008-05-09 00:39:21 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2008-05-09 00:39:21 +0000 |
commit | c36122149830a616fbfc07d4db6515d7815b1c15 (patch) | |
tree | f766c3fa0c3e5aeb83eb7e5e703048109598d929 /sys/apps/simplepkg | |
parent | f85759471a8cabff96043cac7cc459e9188312ce (diff) | |
download | slackbuilds-c36122149830a616fbfc07d4db6515d7815b1c15.tar.gz slackbuilds-c36122149830a616fbfc07d4db6515d7815b1c15.tar.bz2 |
simplepkg: rebuilt from mkbuild
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1880 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'sys/apps/simplepkg')
-rwxr-xr-x | sys/apps/simplepkg/simplepkg.SlackBuild | 38 |
1 files changed, 10 insertions, 28 deletions
diff --git a/sys/apps/simplepkg/simplepkg.SlackBuild b/sys/apps/simplepkg/simplepkg.SlackBuild index e1087890..8579a57a 100755 --- a/sys/apps/simplepkg/simplepkg.SlackBuild +++ b/sys/apps/simplepkg/simplepkg.SlackBuild @@ -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 |