#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-xine-ui VERSION=0.99.4 ARCH=alpha BUILD=3 mkdir -p $PKG/usr ( cd $TMP tar xzf $CWD/xine-ui-$VERSION.tar.gz cd xine-ui-$VERSION chown -R root.root . find . -perm 664 -exec chmod 644 {} \; find . -perm 777 -exec chmod 755 {} \; XINE_BUILD=alpha-alphaslack-linux-gnu \ ./configure \ --prefix=/usr \ --disable-lirc \ --enable-ipv6 || exit make || exit make install DESTDIR=$PKG || exit 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 ) ( cd $PKG/usr/man find . -name "*.?" | xargs gzip -9 ) mkdir -p $PKG/usr/doc/xine-ui-$VERSION cp -a ABOUT-NLS AUTHORS COPYING NEWS README doc/README* $PKG/usr/doc/xine-ui-$VERSION cp -a src/xitk/xine-toolkit/README $PKG/usr/doc/xine-ui-$VERSION/README.xitk # redundant #rm -rf $PKG/usr/{doc,info,man,share/doc} mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/xine-ui-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/xine-ui.build.log