diff options
Diffstat (limited to 'development/cgit/cgit.SlackBuild')
-rw-r--r-- | development/cgit/cgit.SlackBuild | 33 |
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 |