wok view firefox-dev/receipt @ rev 14569
Up xorg-libXp (1.0.2), xorg-libXinerama (1.1.3), xorg-libXi (1.7.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 24 12:05:11 2013 +0200 (2013-05-24) |
parents | f79ea815af04 |
children | 91baf8e30f65 |
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-dev"
4 VERSION="17.0.6esr"
5 CATEGORY="development"
6 SHORT_DESC="firefox devel files"
7 MAINTAINER="jozee@slitaz.org"
8 DEPENDS="alsa-lib sqlite cairo dbus-glib pango atk \
9 libgio xorg-libXt xorg-libXinerama \
10 xorg-libXcursor xorg-libXcomposite xorg-libXext xorg-libXdamage libxcb \
11 xorg-libSM xorg-libICE"
12 WANTED="firefox"
13 WEB_SITE="http://www.mozilla.org/"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 printf "Installing include files.."
19 mkdir -p $fs/usr/include/$WANTED-$VERSION &&
20 cp -rL $src/obj-firefox/dist/include/* $fs/usr/include/$WANTED-$VERSION
21 status
23 printf "Installing libs files.."
24 mkdir -p $fs/usr/lib/$WANTED-devel/sdk/bin/ply &&
25 cp -rL $src/obj-firefox/dist/sdk/bin/*.py \
26 $fs/usr/lib/$WANTED-devel/sdk/bin &&
27 cp -rL $src/obj-firefox/dist/sdk/bin/ply/*.py \
28 $fs/usr/lib/$WANTED-devel/sdk/bin/ply &&
29 mkdir -p $fs/usr/lib/$WANTED-devel/sdk/lib &&
30 cp -rL $src/obj-firefox/dist/sdk/lib/* \
31 $fs/usr/lib/$WANTED-devel/sdk/lib
32 status
34 # printf "Installing npapi files.."
35 # mkdir -v $fs/usr/include/$WANTED-$VERSION/npapi &&
36 # cp -a $src/dom/plugins/base/*.h $fs/usr/include/$WANTED-$VERSION/npapi
37 # status
39 # /usr/share/idl folder should also be in firefox-dev
40 printf "Installing idl files.."
41 mkdir -p $fs/usr/share/$WANTED-$VERSION/idl &&
42 cp -rL $src/obj-firefox/dist/idl/* $fs/usr/share/$WANTED-$VERSION/idl
43 status
45 # copy missing *.pc files
46 printf "Installing pkgconfig files.."
47 mkdir -p $fs/usr/lib/pkgconfig &&
48 cp -a $stuff/*.pc $fs/usr/lib/pkgconfig &&
49 # fix version
50 sed -i "s/VERSION/$VERSION/" $fs/usr/lib/pkgconfig/*
51 status
52 }
54 # Pre and post install commands for Tazpkg.
55 post_install()
56 {
57 for i in usr/share/idl/firefox- usr/include/firefox- \
58 usr/lib/firefox-devel- ; do
59 for j in $(ls -d $1/$i* 2>/dev/null); do
60 [ "${j##*-}" = "$VERSION" ] && continue
61 [ -d $j ] && rm -rf $j
62 done
63 done
64 }