wok view xfmedia/receipt @ rev 15000
Add some GPL2 licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 10 17:00:38 2013 +0000 (2013-08-10) |
parents | 6990e9de1db4 |
children | d3eb5f4b53ea |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://spuriousinterrupt.org/projects/xfmedia"
11 WGET_URL="http://spuriousinterrupt.org/files/xfmedia/xfmedia-0.9.2.tar.bz2"
13 DEPENDS="libxfcegui4 libexo xine-lib xorg-libXss xorg-libXtst taglib libexo startup-notification"
14 BUILD_DEPENDS="libexo-dev util-linux-uuid-dev xine-lib-dev intltool libxfcegui4-dev \
15 startup-notification-dev libxcb-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed -i 's/return xine_trick_mode.*/return 0;/' src/xfmedia-xine.c
22 patch -Np1 -i $stuff/xfmedia-dbus-0.6-support.patch
23 patch -Np1 -i $stuff/xfmedia-empty-prev-next-fix.patch
24 patch -Np1 -i $stuff/xfmedia-exo-0.6.patch
25 ./configure \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 --enable-exo \
29 --disable-startup-notification \
30 $CONFIGURE_ARGS || return 1
31 sed -i 's/define HAVE_XSCREENSAVER_EXTENSION .*/undef HAVE_XSCREENSAVER_EXTENSION/' config.h
32 make && make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/etc $fs/
42 cp -a $install/usr/share/icons $fs/usr/share
43 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
45 # Clean up
46 find $fs/usr/lib -name "*.*a" -exec rm -f {} \;
47 rm -f $fs/usr/bin/*-remote
49 # Strip evrythings
50 find $fs/usr/lib/ -exec strip -s {} 2> /dev/null \;
51 }