diff options
-rw-r--r-- | system/motion/motion.SlackBuild | 24 | ||||
-rw-r--r-- | system/motion/motion.info | 6 |
2 files changed, 14 insertions, 16 deletions
diff --git a/system/motion/motion.SlackBuild b/system/motion/motion.SlackBuild index 169f935892c8..d48cc1401337 100644 --- a/system/motion/motion.SlackBuild +++ b/system/motion/motion.SlackBuild @@ -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 diff --git a/system/motion/motion.info b/system/motion/motion.info index 5f1cf1cf7ee6..ee6dc3fb0b0c 100644 --- a/system/motion/motion.info +++ b/system/motion/motion.info @@ -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" |