# SliTaz package receipt. PACKAGE="xfmedia" VERSION="0.9.2" CATEGORY="multimedia" SHORT_DESC="Xfce Media Player" MAINTAINER="erjo@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://spuriousinterrupt.org/projects/xfmedia" WGET_URL="http://spuriousinterrupt.org/files/xfmedia/$TARBALL" DEPENDS="libxfcegui4 libexo xine-lib xorg-libXss xorg-libXtst taglib libexo startup-notification" BUILD_DEPENDS="libexo-dev util-linux-uuid-dev xine-lib-dev intltool libxfcegui4-dev \ startup-notification-dev libxcb-dev xcb-util-dev" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i 's/return xine_trick_mode.*/return 0;/' src/xfmedia-xine.c patch -Np1 -i $stuff/xfmedia-dbus-0.6-support.patch patch -Np1 -i $stuff/xfmedia-empty-prev-next-fix.patch patch -Np1 -i $stuff/xfmedia-exo-0.6.patch ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --enable-exo \ --disable-startup-notification \ $CONFIGURE_ARGS || return 1 sed -i 's/define HAVE_XSCREENSAVER_EXTENSION .*/undef HAVE_XSCREENSAVER_EXTENSION/' config.h make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share cp -a $install/usr/bin $fs/usr cp -a $install/etc $fs/ cp -a $install/usr/share/icons $fs/usr/share cp -a $install/usr/lib/$PACKAGE $fs/usr/lib # Clean up find $fs/usr/lib -name "*.*a" -exec rm -f {} \; rm -f $fs/usr/bin/*-remote # Strip evrythings find $fs/usr/lib/ -exec strip -s {} 2> /dev/null \; }