diff options
Diffstat (limited to 'trunk/mkbuild/generic.mkSlackBuild')
-rw-r--r-- | trunk/mkbuild/generic.mkSlackBuild | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/trunk/mkbuild/generic.mkSlackBuild b/trunk/mkbuild/generic.mkSlackBuild index 49b9e71..2f1bf99 100644 --- a/trunk/mkbuild/generic.mkSlackBuild +++ b/trunk/mkbuild/generic.mkSlackBuild @@ -137,6 +137,28 @@ PKG_SRC="$PWD/$SND_DIR" cd "$PKG_SRC" </svn_source> +<git_source> off +# Get git source code +cd "$SRC_DIR" +SND_DIR="`basename [[DOWNLOAD FOLDER URL]] .git`" + +if [ "`find "$SRC_DIR/" -name .git`" != "" ] && [ -d "$SRC_DIR/$SND_DIR" ]; then + cd $SND_DIR + git pull || exit $ERROR_VCS +else + git clone [[DOWNLOAD FOLDER URL]] $SND_DIR || exit $ERROR_VCS + cd $SND_DIR +fi + +PKG_VERSION="`git log | head -n 1 | awk '{ print $2 }'`_git" + +# Copy git source +cd "$PKG_WORK" +cp -a $SRC_DIR/* . +PKG_SRC="$PWD/$SND_DIR" +cd "$PKG_SRC" +</git_source> + <md5sum_check> off MD5SUM_URL="[[MD5SUM CODE]]" |