summaryrefslogtreecommitdiffstats
path: root/multimedia/dvdrip/dvdrip.SlackBuild
diff options
context:
space:
mode:
author Matteo Bernardini <ponce@slackbuilds.org>2012-09-14 17:02:20 +0200
committer Matteo Bernardini <ponce@slackbuilds.org>2012-09-14 17:05:53 +0200
commit2fba9f4a3c04e8ce02f16076f1b600daf3db6fbe (patch)
tree04c8a61b9489602c7732300fa22b01b0166b37d4 /multimedia/dvdrip/dvdrip.SlackBuild
parentbe6badd719f3b1f6ba64bb349ffe431ccd6a9b1a (diff)
downloadslackbuilds-2fba9f4a3c04e8ce02f16076f1b600daf3db6fbe.tar.gz
slackbuilds-2fba9f4a3c04e8ce02f16076f1b600daf3db6fbe.tar.xz
multimedia/dvdrip: Fixed man installation and global prefix.
Noted also the optional dependency on rar. Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'multimedia/dvdrip/dvdrip.SlackBuild')
-rw-r--r--multimedia/dvdrip/dvdrip.SlackBuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/multimedia/dvdrip/dvdrip.SlackBuild b/multimedia/dvdrip/dvdrip.SlackBuild
index ff0c2f1f8a..d4ab7a4c24 100644
--- a/multimedia/dvdrip/dvdrip.SlackBuild
+++ b/multimedia/dvdrip/dvdrip.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=dvdrip
VERSION=${VERSION:-0.98.11}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -51,7 +51,11 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-perl Makefile.PL
+perl Makefile.PL \
+ PREFIX=/usr \
+ INSTALLDIRS=vendor \
+ INSTALLVENDORMAN1DIR=/usr/man/man1 \
+ INSTALLVENDORMAN3DIR=/usr/man/man3
make
make install DESTDIR=$PKG
@@ -63,7 +67,8 @@ mkdir -p $PKG/usr/share/{applications,pixmaps}
cat $CWD/dvdrip.desktop > $PKG/usr/share/applications/dvdrip.desktop
cat $CWD/dvdrip.png > $PKG/usr/share/pixmaps/dvdrip.png
-mv $PKG/usr/share/man $PKG/usr
+# some man files are empty ATM :/
+rm $PKG/usr/man/man1/dvdrip-*
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