wok annotate gecko-mediaplayer/receipt @ rev 7629
evince: build doc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 12 22:50:26 2010 +0100 (2010-12-12) |
parents | 2e2182175d2f |
children |
rev | line source |
---|---|
jozee@3128 | 1 # SliTaz package receipt. |
jozee@3128 | 2 |
jozee@3128 | 3 PACKAGE="gecko-mediaplayer" |
slaxemulator@7150 | 4 VERSION="1.0.0" |
jozee@3128 | 5 CATEGORY="multimedia" |
jozee@3128 | 6 SHORT_DESC="Browser plugin that uses gnome-mplayer to play media in a web browser" |
jozee@3128 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@5001 | 8 DEPENDS="gnome-mplayer dbus-glib gcc-lib-base" |
jozee@3409 | 9 BUILD_DEPENDS="firefox-dev dbus-dev dbus-glib-dev" |
jozee@3128 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
jozee@3128 | 11 WEB_SITE="http://code.google.com/p/gecko-mediaplayer/" |
jozee@3128 | 12 WGET_URL="http://gecko-mediaplayer.googlecode.com/files/$TARBALL" |
jozee@3128 | 13 TAGS="player audio video browser" |
jozee@3128 | 14 |
jozee@3128 | 15 # Rules to configure and make the package. |
jozee@3128 | 16 compile_rules() |
jozee@3128 | 17 { |
jozee@3128 | 18 cd $src |
pascal@7448 | 19 sed -i 's/utf8characters/UTF8Characters/g' src/*.cpp |
jozee@3128 | 20 ./configure --prefix=/usr --sysconfdir=/etc \ |
jozee@3409 | 21 --disable-schemas-install --without-gconf && |
jozee@3128 | 22 make && |
jozee@3128 | 23 make DESTDIR=$PWD/_pkg install |
jozee@3409 | 24 |
jozee@3128 | 25 } |
jozee@3128 | 26 |
jozee@3128 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@3128 | 28 genpkg_rules() |
jozee@3128 | 29 { |
jozee@3128 | 30 mkdir -p $fs/usr/lib |
jozee@3128 | 31 cp -a $_pkg/usr/lib/mozilla $fs/usr/lib |
jozee@3409 | 32 |
jozee@3128 | 33 } |
jozee@3409 | 34 |
jozee@3409 | 35 post_install() |
jozee@3409 | 36 { |
jozee@3409 | 37 echo -n "Processing post install commands..." |
jozee@3409 | 38 local root |
jozee@3409 | 39 root=$1 |
jozee@3409 | 40 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do |
jozee@3409 | 41 ln -s $i $root/usr/lib/firefox*/plugins |
jozee@3409 | 42 done |
jozee@3409 | 43 status |
jozee@3409 | 44 } |
jozee@3409 | 45 |
jozee@3409 | 46 post_remove() |
jozee@3409 | 47 { |
jozee@3409 | 48 echo -n "Processing post remove commands..." |
jozee@3409 | 49 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so |
jozee@3409 | 50 status |
jozee@3409 | 51 } |