wok view xfmedia/receipt @ rev 9054

amule: fix genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 04 11:38:47 2011 +0100 (2011-03-04)
parents f392a3383b55
children b86a62bb9f0c
line source
1 # SliTaz package receipt.
3 PACKAGE="xfmedia"
4 VERSION="0.9.2"
5 CATEGORY="multimedia"
6 SHORT_DESC="Xfce Media Player"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="libxfcegui4 libexo xine-lib xorg-libXss xorg-libXtst taglib"
9 BUILD_DEPENDS="exo util-linux-ng-uuid intltool"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://spuriousinterrupt.org/projects/xfmedia"
12 WGET_URL="http://spuriousinterrupt.org/files/xfmedia/xfmedia-0.9.2.tar.bz2"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 patch -Np1 -i $stuff/xfmedia-dbus-0.6-support.patch
19 patch -Np1 -i $stuff/xfmedia-empty-prev-next-fix.patch
20 patch -Np1 -i $stuff/xfmedia-exo-0.6.patch
21 ./configure \
22 --prefix=/usr \
23 --sysconfdir=/etc \
24 --enable-exo \
25 --disable-startup-notification \
26 $CONFIGURE_ARGS || return 1
27 sed -i 's/define HAVE_XSCREENSAVER_EXTENSION .*/undef HAVE_XSCREENSAVER_EXTENSION/' config.h
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share
36 cp -a $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/etc $fs/
38 cp -a $_pkg/usr/share/icons $fs/usr/share
39 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
41 # Clean up
42 find $fs/usr/lib -name "*.*a" -exec rm -f {} \;
43 rm -f $fs/usr/bin/*-remote
45 # Strip evrythings
46 find $fs/usr/lib/ -exec strip -s {} 2> /dev/null \;
47 }