wok view superswitcher/receipt @ rev 14466

nagios: add pre_remove
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 27 09:26:24 2013 +0200 (2013-04-27)
parents 66bf43586a94
children 380ffe05937a
line source
1 # SliTaz package receipt.
3 PACKAGE="superswitcher"
4 VERSION="0.6"
5 CATEGORY="x-window"
6 SHORT_DESC="Replacement for the Alt-Tab window switching behavior"
7 MAINTAINER="mallory@sweetpeople.org"
8 DEPENDS="gtk+ libwnck GConf"
9 BUILD_DEPENDS="perl-xml-parser intltool glib-dev gtk+-dev libwnck-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://code.google.com/p/superswitcher/"
12 WGET_URL="http://$PACKAGE.googlecode.com/files/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
20 # Fix from Gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-misc/superswitcher/superswitcher-0.6.ebuild
21 patch -p1 < $stuff/superswitcher-0.6-wnck-workspace.patch
22 sed -i '/-DG.*_DISABLE_DEPRECATED/d;s/@WARN_CFLAGS@//' src/Makefile.am
23 aclocal
24 autoconf
25 automake --add-missing
26 sed -i '/GNOME_COMPILE_WARNINGS/d' configure
27 ./configure \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 $CONFIGURE_ARGS &&
32 make && make DESTDIR=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $_pkg/usr/bin $fs/usr
40 }