summaryrefslogtreecommitdiff
path: root/development/fossil/fossil.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/fossil/fossil.SlackBuild')
-rw-r--r--development/fossil/fossil.SlackBuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/development/fossil/fossil.SlackBuild b/development/fossil/fossil.SlackBuild
index a5fa0e8bbb..91bba3065c 100644
--- a/development/fossil/fossil.SlackBuild
+++ b/development/fossil/fossil.SlackBuild
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=fossil
-VERSION=${VERSION:-1.30}
-SRCVER=${SRCVER:-20150119112900} # Corresponds to version 1.30
+VERSION=${VERSION:-1.31}
+SRCVER=${SRCVER:-20150223162734} # Corresponds to version 1.31
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,15 +60,15 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-src-$SRCVER
+rm -rf $PRGNAM-src-$(echo $SRCVER | sed 's/..$//')
tar xvf $CWD/$PRGNAM-src-$SRCVER.tar.gz
-cd $PRGNAM-src-$SRCVER
+cd $PRGNAM-src-$(echo $SRCVER | sed 's/..$//')
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 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS=$SLKCFLAGS \
CXXFLAGS=$SLKCFLAGS \
@@ -83,6 +83,9 @@ 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
+mkdir -p $PKG/usr/man/man1
+gzip -9c fossil.1 > $PKG/usr/man/man1/fossil.1.gz
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYRIGHT-BSD2.txt BUILD.txt $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild