aboutsummaryrefslogtreecommitdiff
path: root/development/src-vcs/src-vcs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/src-vcs/src-vcs.SlackBuild')
-rw-r--r--development/src-vcs/src-vcs.SlackBuild21
1 files changed, 15 insertions, 6 deletions
diff --git a/development/src-vcs/src-vcs.SlackBuild b/development/src-vcs/src-vcs.SlackBuild
index f1eca3d11f466..2c556639b3269 100644
--- a/development/src-vcs/src-vcs.SlackBuild
+++ b/development/src-vcs/src-vcs.SlackBuild
@@ -21,8 +21,8 @@
# <http://www.gnu.org/licenses/>.
PRGNAM=src-vcs
-VERSION=${VERSION:-0.18}
-SRCVERSION=a6ee7f329ef9f9cdafba1f5b39492094080926f3
+SRCNAM=src
+VERSION=${VERSION:-0.19}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -39,6 +39,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+DOCS="COPYING FAQ.asc INSTALL NEWS README TODO src.asc srctest"
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -57,9 +59,15 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$PRGNAM
-tar xvf $CWD/$SRCVERSION.tar.gz
-cd $PRGNAM-$PRGNAM
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$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 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
make \
OPTS="$SLKCFLAGS" \
@@ -79,7 +87,8 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp $CWD/README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -ar $DOCS \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install