wok view obconf/receipt @ rev 5571
v4l-dvb: fix lsmod path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 14 21:40:50 2010 +0200 (2010-05-14) |
parents | 652cfc895b1a |
children | 9df3bbf503c6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="obconf"
4 VERSION="2.0.3"
5 CATEGORY="x-window"
6 SHORT_DESC="Openbox WM configuration interface."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="openbox gtk+ libglade shared-mime-info xorg-libXdamage"
9 BUILD_DEPENDS="xorg-dev gtk+-dev libglade-dev openbox-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://icculus.org/openbox/"
12 WGET_URL="http://icculus.org/openbox/obconf/$TARBALL"
13 TAGS="openbox"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 $CONFIGURE_ARGS &&
22 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
23 make &&
24 make DESTDIR=$PWD/_pkg install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/share
31 cp -a $_pkg/usr/bin $fs/usr
32 cp -a $_pkg/usr/share/obconf $fs/usr/share
33 cp -a stuff/mime $fs/usr/share
34 touch $fs/usr/share/mime/x-openbox-theme.xml
35 touch $fs/usr/share/mime/x-vbscript.xml
36 touch $fs/usr/share/mime/x-ms-win-installer.xml
37 # Locale
38 for i in $LOCALE
39 do
40 mkdir -p $fs/usr/share/locale/$i/LC_MESSAGES
41 cp $src/po/$i.gmo \
42 $fs/usr/share/locale/$i/LC_MESSAGES/obconf.mo
43 done
44 }
46 # Update mime database.
47 post_install()
48 {
49 local root
50 root=$1
51 update-mime-database $root/usr/share/mime || continue
52 }