#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-xine-ui VERSION=0.99.3 ARCH=alpha BUILD=1 mkdir -p $PKG/usr ( cd $TMP tar xjf $CWD/xine-ui-$VERSION.tar.bz2 cd xine-ui-$VERSION zcat $CWD/xine-ui-configure.diff.gz | patch -p0 --verbose 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 make 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 ) ( 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