summaryrefslogtreecommitdiff
path: root/development/cgit/cgit.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2013-08-29 16:37:57 +0200
committerRobby Workman <rworkman@slackbuilds.org>2013-11-06 00:55:11 -0600
commit53589ff94f30becaebc6dd03051c2ae363e9e1c1 (patch)
treeebac846555e8fa41bf0b94ca19ddcd8d876234c9 /development/cgit/cgit.SlackBuild
parent7d9598c7e3a0d55c95de2a9c2cd6b9cb30d30a59 (diff)
downloadslackbuilds-53589ff94f30becaebc6dd03051c2ae363e9e1c1.tar.gz
development/cgit: Updated for version 20130826_d62e71a.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/cgit/cgit.SlackBuild')
-rw-r--r--development/cgit/cgit.SlackBuild33
1 files changed, 24 insertions, 9 deletions
diff --git a/development/cgit/cgit.SlackBuild b/development/cgit/cgit.SlackBuild
index d05642cad7..2b14d5bd44 100644
--- a/development/cgit/cgit.SlackBuild
+++ b/development/cgit/cgit.SlackBuild
@@ -1,11 +1,28 @@
#!/bin/sh
# Slackware build script for cgit
-# Written by Matteo Bernardini <ponce@slackbuilds.org>
+# Copyright 2013 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=cgit
-VERSION=${VERSION:-20120318_f50be7f}
-CGIT_VERSION=${CGIT_VERSION:-v0.9.0.3-4-gf50b}
+VERSION=${VERSION:-20130826_d62e71a}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -36,11 +53,12 @@ else
LIBDIRSUFFIX=""
fi
+CGIT_VERSION=${CGIT_VERSION:-v0.9.2-21-gd62e}
+GIT_VERSION=${GIT_VERSION:-1.8.4}
+
DOCS="cgitrc.5.txt COPYING README $CWD/config/cgit-lighttpd.conf \
$CWD/config/cgit-httpd.conf $CWD/config/cgitrc.sample"
-GIT_TARBALL=$(grep \/git- $CWD/cgit.info | cut -d'/' -f7 | sed -e 's/\"//')
-
set -e
rm -rf $PKG
@@ -56,9 +74,6 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# add a patch to sort summary branches
-patch -p1 < $CWD/sort-summary-branches.patch
-
# prepare sources
sed -i -e "s|-g -Wall -Igit|-Wall ${SLKCFLAGS} -Igit|" Makefile
sed -i -e "s|\/lib$|/lib${LIBDIRSUFFIX}|" Makefile
@@ -68,7 +83,7 @@ echo "CGIT_VERSION = $CGIT_VERSION" >> cgit.conf
# extract the git tarball
rm -fR git
-tar xvf $CWD/$GIT_TARBALL
+tar xvf $CWD/git-$GIT_VERSION.tar.?z*
mv git-* git
make