wok annotate xfmedia/receipt @ rev 25539
Up perl-test-compile (3.1.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 09 12:11:13 2023 +0000 (20 months ago) |
parents | 0c95118e9932 |
children |
rev | line source |
---|---|
erjo@4887 | 1 # SliTaz package receipt. |
erjo@4887 | 2 |
erjo@4887 | 3 PACKAGE="xfmedia" |
erjo@4887 | 4 VERSION="0.9.2" |
erjo@4887 | 5 CATEGORY="multimedia" |
erjo@4887 | 6 SHORT_DESC="Xfce Media Player" |
erjo@4887 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
erjo@4887 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
erjo@4887 | 10 WEB_SITE="http://spuriousinterrupt.org/projects/xfmedia" |
pascal@17869 | 11 WGET_URL="http://spuriousinterrupt.org/files/xfmedia/$TARBALL" |
erjo@4887 | 12 |
erjo@9879 | 13 DEPENDS="libxfcegui4 libexo xine-lib xorg-libXss xorg-libXtst taglib libexo startup-notification" |
pankso@12481 | 14 BUILD_DEPENDS="libexo-dev util-linux-uuid-dev xine-lib-dev intltool libxfcegui4-dev \ |
pascal@19750 | 15 startup-notification-dev libxcb-dev xcb-util-dev" |
erjo@9879 | 16 |
pascal@24465 | 17 # What is the latest version available today? |
pascal@24465 | 18 current_version() |
pascal@24465 | 19 { |
pascal@24465 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24465 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24465 | 22 } |
pascal@24465 | 23 |
erjo@4887 | 24 # Rules to configure and make the package. |
erjo@4887 | 25 compile_rules() |
erjo@4887 | 26 { |
pascal@12988 | 27 sed -i 's/return xine_trick_mode.*/return 0;/' src/xfmedia-xine.c |
gokhlayeh@8884 | 28 patch -Np1 -i $stuff/xfmedia-dbus-0.6-support.patch |
gokhlayeh@8884 | 29 patch -Np1 -i $stuff/xfmedia-empty-prev-next-fix.patch |
gokhlayeh@8884 | 30 patch -Np1 -i $stuff/xfmedia-exo-0.6.patch |
erjo@4887 | 31 ./configure \ |
erjo@4887 | 32 --prefix=/usr \ |
erjo@4887 | 33 --sysconfdir=/etc \ |
erjo@4887 | 34 --enable-exo \ |
erjo@4887 | 35 --disable-startup-notification \ |
pascal@5856 | 36 $CONFIGURE_ARGS || return 1 |
pascal@5856 | 37 sed -i 's/define HAVE_XSCREENSAVER_EXTENSION .*/undef HAVE_XSCREENSAVER_EXTENSION/' config.h |
gokhlayeh@8884 | 38 make && make install |
erjo@4887 | 39 } |
erjo@4887 | 40 |
erjo@4887 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@4887 | 42 genpkg_rules() |
erjo@4887 | 43 { |
erjo@4887 | 44 mkdir -p $fs/usr/share |
erjo@4887 | 45 |
pascal@15000 | 46 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 47 cp -a $install/etc $fs/ |
pascal@15000 | 48 cp -a $install/usr/share/icons $fs/usr/share |
pascal@15000 | 49 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib |
erjo@4887 | 50 |
erjo@4887 | 51 # Clean up |
erjo@4887 | 52 find $fs/usr/lib -name "*.*a" -exec rm -f {} \; |
erjo@4887 | 53 rm -f $fs/usr/bin/*-remote |
erjo@4887 | 54 |
erjo@4887 | 55 # Strip evrythings |
erjo@4887 | 56 find $fs/usr/lib/ -exec strip -s {} 2> /dev/null \; |
erjo@4887 | 57 } |