system/motion: Updated for version 20120717_0fb31d6, cleanups.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2012-09-19 21:18:45 +02:00 committed by Robby Workman
parent 1a2ff195f9
commit 7a27d22bbc
2 changed files with 14 additions and 16 deletions

View file

@ -24,7 +24,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=motion
VERSION=3.2.12
VERSION=20120717_0fb31d6
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@ -34,9 +36,6 @@ if [ -z "$ARCH" ]; then
esac
fi
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@ -56,7 +55,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@ -78,19 +77,18 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
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
# Let's not clobber the config file
mv $PKG/etc/motion-dist.conf $PKG/etc/motion-dist.conf.new
mv $PKG/usr/share/doc $PKG/usr/doc
mv $PKG/usr/share/$PRGNAM-$VERSION/examples $PKG/usr/doc/$PRGNAM-$VERSION/
mkdir $PKG/usr/doc
mv $PKG/usr/share/doc/motion-* $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/share/$PRGNAM-*/examples $PKG/usr/doc/$PRGNAM-$VERSION/
rm -rf $PKG/usr/share # We moved the docs from there
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,9 +1,9 @@
PRGNAM="motion"
VERSION="3.2.12"
VERSION="20120717_0fb31d6"
HOMEPAGE="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome"
DOWNLOAD="http://downloads.sourceforge.net/motion/motion-3.2.12.tar.gz"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/motion-20120717_0fb31d6.tar.xz"
MD5SUM="904e2b1a621b1eb13c9c66adece88508"
DOWNLOAD_x86_64=""
MD5SUM="1ba0065ed50509aaffb171594c689f46"
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Pierre Cazenave"