summaryrefslogtreecommitdiffstats
path: root/multimedia/ripit/ripit.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/ripit/ripit.SlackBuild')
-rw-r--r--multimedia/ripit/ripit.SlackBuild34
1 files changed, 20 insertions, 14 deletions
diff --git a/multimedia/ripit/ripit.SlackBuild b/multimedia/ripit/ripit.SlackBuild
index 6f9f74e466..302c9cf6e2 100644
--- a/multimedia/ripit/ripit.SlackBuild
+++ b/multimedia/ripit/ripit.SlackBuild
@@ -1,10 +1,10 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for ripit
# Formerly maintained by Ryan P.C. McQuen <email removed>
-# Now maintained by B. Watson <yalhcru@gmail.com>
+# Now maintained by B. Watson <urchlay@slackware.uk>
-# Copyright 2011 Grigorios Bouzakis <grbzks@xsmail.com>
+# Copyright 2011 Grigorios Bouzakis <email removed>
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for any purpose
@@ -30,13 +30,21 @@
# - update README.
# - BUILD=2.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=ripit
VERSION=${VERSION:-3.9.0}
ARCH=noarch
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-CWD=$(pwd)
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -52,18 +60,16 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
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 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
-make INSTALL=/bin/install prefix=$PKG/usr mandir=$PKG/usr/man/man1 etcdir=$PKG/etc/ripit install
+make INSTALL=/bin/install \
+ prefix=$PKG/usr \
+ mandir=$PKG/usr/man/man1 \
+ etcdir=$PKG/etc/ripit install
mv $PKG/etc/ripit/config $PKG/etc/ripit/config.new
-
-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
+gzip -9 $PKG/usr/man/man1/*.*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
@@ -74,4 +80,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE