wok annotate gnome-mplayer/receipt @ rev 19644

dev86: update post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 21 15:22:15 2017 +0100 (2017-01-21)
parents 5e89c125c736
children e3f377fbc5f0
rev   line source
jozee@3120 1 # SliTaz package receipt.
jozee@3120 2
jozee@3120 3 PACKAGE="gnome-mplayer"
slaxemulator@10186 4 VERSION="1.0.3"
jozee@3120 5 CATEGORY="multimedia"
jozee@3120 6 SHORT_DESC="simple MPlayer GUI"
jozee@3120 7 MAINTAINER="jozee@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
jozee@3120 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@3120 10 WEB_SITE="http://gnome-mplayer.googlecode.com/"
jozee@3120 11 WGET_URL="$WEB_SITE/files/$TARBALL"
jozee@3120 12 TAGS="player audio video movie mp3 ogg dvd"
jozee@3120 13
pascal@15000 14 DEPENDS="mplayer gtk+ dbus-glib libnotify alsa-lib libgpod"
pascal@15000 15 BUILD_DEPENDS="$DEPENDS dbus-dev dbus-glib-dev libnotify-dev libgpod-dev pkg-config xorg-libX11-dev libxcb-dev gtk+-dev xorg-libXss-dev"
pascal@15000 16
jozee@3120 17 # Rules to configure and make the package.
jozee@3120 18 compile_rules()
jozee@3120 19 {
jozee@3120 20 cd $src
jozee@4534 21 ./configure --prefix=/usr \
slaxemulator@10868 22 --sysconfdir=/etc \
slaxemulator@10868 23 --disable-schemas-install \
slaxemulator@10868 24 --without-gconf \
slaxemulator@10868 25 --disable-nautilus \
slaxemulator@10868 26 --disable-panscan \
slaxemulator@10868 27 --without-libmusicbrainz3 &&
jozee@3120 28 make &&
slaxemulator@10868 29 make install
jozee@3120 30
jozee@3120 31 }
jozee@3120 32
jozee@3120 33 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@3120 34 genpkg_rules()
jozee@3120 35 {
jozee@4534 36 mkdir -p $fs/usr/share/icons/hicolor $fs/usr/share/applications
pascal@15000 37 cp -a $install/usr/bin $fs/usr
pascal@15000 38 cp -a $install/usr/share/glib-2.0 $fs/usr/share
pascal@15000 39 cp -a $install/usr/share/icons/hicolor/16x16 $fs/usr/share/icons/hicolor
pascal@15000 40 sed -i 's|Exec=gnome-mplayer|Exec=gnome-mplayer %F|' $install/usr/share/applications/$PACKAGE.desktop
jozee@3120 41 }