wok-current view xfmedia/receipt @ rev 24988
Fix perl-gd & tcptrack
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 12 11:01:25 2022 +0000 (2022-05-12) |
parents | 0c95118e9932 |
children |
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/$TARBALL"
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 xcb-util-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's/return xine_trick_mode.*/return 0;/' src/xfmedia-xine.c
28 patch -Np1 -i $stuff/xfmedia-dbus-0.6-support.patch
29 patch -Np1 -i $stuff/xfmedia-empty-prev-next-fix.patch
30 patch -Np1 -i $stuff/xfmedia-exo-0.6.patch
31 ./configure \
32 --prefix=/usr \
33 --sysconfdir=/etc \
34 --enable-exo \
35 --disable-startup-notification \
36 $CONFIGURE_ARGS || return 1
37 sed -i 's/define HAVE_XSCREENSAVER_EXTENSION .*/undef HAVE_XSCREENSAVER_EXTENSION/' config.h
38 make && make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/etc $fs/
48 cp -a $install/usr/share/icons $fs/usr/share
49 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
51 # Clean up
52 find $fs/usr/lib -name "*.*a" -exec rm -f {} \;
53 rm -f $fs/usr/bin/*-remote
55 # Strip evrythings
56 find $fs/usr/lib/ -exec strip -s {} 2> /dev/null \;
57 }