diff options
author | Robby Workman <rw@rlworkman.net> | 2010-05-11 19:45:10 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 19:45:10 +0200 |
commit | f75f68734bd7e0adc92f1c9c962fe64c673fadc5 (patch) | |
tree | 3dd03680feacc56634bc055b1cc09c1a8fff2efc /libraries/libdvdcss/libdvdcss.SlackBuild | |
parent | 34022594ffe4b57692298ddc3d3fa72395cd1545 (diff) | |
download | slackbuilds-f75f68734bd7e0adc92f1c9c962fe64c673fadc5.tar.gz |
libraries/libdvdcss: Updated for version 1.2.9
Diffstat (limited to 'libraries/libdvdcss/libdvdcss.SlackBuild')
-rw-r--r-- | libraries/libdvdcss/libdvdcss.SlackBuild | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/libraries/libdvdcss/libdvdcss.SlackBuild b/libraries/libdvdcss/libdvdcss.SlackBuild index 6be1c09018..4a1b5b99bc 100644 --- a/libraries/libdvdcss/libdvdcss.SlackBuild +++ b/libraries/libdvdcss/libdvdcss.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libdvdcss -# Copyright 2006 Robby Workman (http://rlworkman.net) +# Copyright 2006-2007 Robby Workman (http://rlworkman.net) # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,14 +22,12 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Modified by the SlackBuilds.org project - PRGNAM=libdvdcss VERSION=1.2.9 ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} -CWD=`pwd` +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -40,14 +38,24 @@ elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG/usr $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 -cd $PRGNAM-$VERSION || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION chown -R root:root . -chmod -R a-s,u+w,go+r-w . +find . \ + \( -perm 777 -o -perm 775 -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 {} \; + +# Fix build error on docs with patch from Gentoo +# Thanks to XGizzmo for sending the link :) +patch -p1 < $CWD/libdvdcss-1.2.9-latex-character-encoding.patch CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -56,11 +64,10 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-shared=yes \ - --enable-static=no \ - || exit 1 + --enable-static=no -make || exit 1 -make install DESTDIR=$PKG || exit 1 +make +make install DESTDIR=$PKG ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null @@ -68,7 +75,8 @@ make install DESTDIR=$PKG || exit 1 ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING INSTALL NEWS README Changelog $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING INSTALL NEWS README ChangeLog \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |