summaryrefslogtreecommitdiff
path: root/development/cgit/cgit.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/cgit/cgit.SlackBuild')
-rw-r--r--development/cgit/cgit.SlackBuild31
1 files changed, 21 insertions, 10 deletions
diff --git a/development/cgit/cgit.SlackBuild b/development/cgit/cgit.SlackBuild
index a5570e5a30..37b85b4c1f 100644
--- a/development/cgit/cgit.SlackBuild
+++ b/development/cgit/cgit.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Slackware build script for cgit
-# Copyright 2013 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
+# Copyright 2013, 2014 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=cgit
-VERSION=${VERSION:-20130826_d62e71a}
+VERSION=${VERSION:-0.10.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,11 +55,13 @@ else
LIBDIRSUFFIX=""
fi
-CGIT_VERSION=${CGIT_VERSION:-v0.9.2-21-gd62e}
-GIT_VERSION=${GIT_VERSION:-1.8.4}
+CGIT_VERSION=${CGIT_VERSION:-v0.10.1}
+GIT_VERSION=${GIT_VERSION:-1.9.0}
DOCS="cgitrc.5.txt COPYING README $CWD/config/cgitrc.sample \
- $CWD/config/cgit-lighttpd.conf $CWD/config/cgit-httpd.conf"
+ $CWD/config/cgit-lighttpd.conf $CWD/config/cgit-httpd.conf \
+ $CWD/config/email-libravatar-korg-additions.css \
+ $CWD/config/email-gravatar-sbo-additions.css"
set -e
@@ -67,14 +69,17 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# apply upstream patches
+for i in $CWD/patches/* ; do patch -p1 < $i ; done
# prepare sources
sed -i Makefile \
@@ -96,6 +101,12 @@ make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# Install additionals lua scripts
+install -m 0644 -D $CWD/config/email-libravatar-korg.lua \
+ $PKG/usr/share/cgit/filters/email-libravatar-korg.lua
+install -m 0644 -D $CWD/config/email-gravatar-sbo.lua \
+ $PKG/usr/share/cgit/filters/email-gravatar-sbo.lua
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
install -m0644 -oroot $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
sed -i "s|@DOCROOT@|$DOCROOT|g" $PKG/usr/doc/$PRGNAM-$VERSION/*