diff options
Diffstat (limited to 'multimedia/mythplugins/mythplugins.SlackBuild')
-rw-r--r-- | multimedia/mythplugins/mythplugins.SlackBuild | 49 |
1 files changed, 31 insertions, 18 deletions
diff --git a/multimedia/mythplugins/mythplugins.SlackBuild b/multimedia/mythplugins/mythplugins.SlackBuild index 97eebb773a..c8385210b5 100644 --- a/multimedia/mythplugins/mythplugins.SlackBuild +++ b/multimedia/mythplugins/mythplugins.SlackBuild @@ -3,7 +3,11 @@ # Slackware build script for mythtvplugins # http://www.mythtv.org/ -# Copyright 2006-2009 David Somero (dsomero@hotmail.com) Athens,TN USA +# Written by David Somero <dsomero@hotmail.com> +# Derived from Slackware's Slackbuilds. +# +# Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2010 David Somero (dsomero@hotmail.com) Athens, TN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -12,19 +16,19 @@ # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=mythplugins -VERSION=0.22 +VERSION=0.23.1 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -43,6 +47,10 @@ TMP=${TMP:-/tmp/SBo} PKG=${TMP}/package-${PRGNAM} OUTPUT=${OUTPUT:-/tmp} +DOCOWN=${DOCOWN:-apache} +DOCGRP=${DOCGRP:-apache} +DOCROOT=${DOCROOT:-"/srv/httpd/htdocs/mythweb"} + if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" @@ -74,25 +82,29 @@ find . \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -./configure --prefix=/usr +./configure \ + --prefix=/usr \ + --libdir-name=lib${LIBDIRSUFFIX} qmake $PRGNAM.pro make make INSTALL_ROOT="$PKG" install -cp -a mythweb $PKG/usr/share/mythtv/ +# Install mythweb. +mkdir -p $PKG$DOCROOT +cp -a mythweb/* $PKG$DOCROOT +chown -R $DOCOWN:$DOCGRP $PKG$DOCROOT +install -D -m0644 $CWD/mythweb.conf $PKG/etc/httpd/extra/mythweb.conf.new find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true # Remove perllocal.pod and other special files that don't need to be installed -( cd $PKG - find . -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f -) +find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION ( PATHS=$(ls -d */ | xargs -l basename) - for i in $PATHS; do + for i in $PATHS; do [ -f $i/README ] && cp $i/README $PKG/usr/doc/$PRGNAM-$VERSION/README.$i ; [ -f $i/AUTHORS ] && cp $i/AUTHORS $PKG/usr/doc/$PRGNAM-$VERSION/AUTHORS.$i ; [ -f $i/COPYING ] && cp $i/COPYING $PKG/usr/doc/$PRGNAM-$VERSION/COPYING.$i ; @@ -104,6 +116,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install 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} |