#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-avidemux VERSION=2.3.0 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf avidemux_$VERSION tar xzf $CWD/avidemux_$VERSION.tar.gz cd avidemux_$VERSION #zcat $CWD/patches/avidemux-2.3.0-configure.patch.gz | patch -p1 --verbose || exit #zcat $CWD/patches/avidemux-2.3.0-amprogas.patch.gz | patch -p0 --verbose || exit #zcat $CWD/patches/avidemux-2.3.0-dts.patch.gz | patch -p0 --verbose || exit #zcat $CWD/patches/avidemux-2.3.0-twolame.patch.gz | patch -p1 --verbose || exit #zcat $CWD/patches/avidemux-2.3.0-po.makefile.patch.gz | patch -p1 --verbose || exit #zcat $CWD/patches/avidemux-2.3.0-alpha.patch.gz | patch -p0 --verbose || exit chown -R root.root . find . -perm 777 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; ./configure \ --prefix=/usr \ --with-jsapi-include=/usr/include/seamonkey-1.1.1/js \ $TARGET make || exit make install DESTDIR=$PKG chown -R root.bin $PKG/usr/bin ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) mkdir -p $PKG/usr/doc/avidemux-$VERSION cp -a AUTHORS C* History README TODO $PKG/usr/doc/avidemux-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/avidemux-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/avidemux.build.log