aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trunk/doc/CHANGELOG3
-rw-r--r--trunk/mkbuild/generic.mkSlackBuild22
-rw-r--r--trunk/mkbuild/model.mkbuild1
3 files changed, 25 insertions, 1 deletions
diff --git a/trunk/doc/CHANGELOG b/trunk/doc/CHANGELOG
index 3af2998..180dbb3 100644
--- a/trunk/doc/CHANGELOG
+++ b/trunk/doc/CHANGELOG
@@ -5,8 +5,9 @@ simplepkg changelog
========
- generic.mkSlackBuild:
- - config() on postinstall_script now accepting .dist and .sample config file extensions.
+ - config() on postinstall_script now accepting .dist and .sample config file extensions
- clean_builds now compliant with standard --cleanup behaviour
+ - added git_source section
- createpkg: most clean -s option output
- lspkg: fix on package search routine
- jail-commit: using unified diff
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