diff options
Diffstat (limited to 'trunk/mkbuild')
-rw-r--r-- | trunk/mkbuild/generic.mkSlackBuild | 22 | ||||
-rw-r--r-- | trunk/mkbuild/model.mkbuild | 1 |
2 files changed, 23 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]]" diff --git a/trunk/mkbuild/model.mkbuild b/trunk/mkbuild/model.mkbuild index 391b750..86f0c2d 100644 --- a/trunk/mkbuild/model.mkbuild +++ b/trunk/mkbuild/model.mkbuild @@ -130,6 +130,7 @@ off: create_build_user_and_group on: download_source off: svn_source +off: git_source off: md5sum_download_and_check_0 off: md5sum_download_and_check_1 off: gpg_signature_check |