wok-stable annotate firefox-dev/receipt @ rev 12067

git-gui: fix icon path
author Antoine Bodin <gokhlayeh@slitaz.org>
date Fri Mar 09 02:48:44 2012 +0100 (2012-03-09)
parents 6d1361c333f4
children
rev   line source
jozee@2974 1 # SliTaz package receipt.
jozee@2974 2
jozee@2974 3 PACKAGE="firefox-dev"
slaxemulator@11817 4 VERSION="10.0.2"
jozee@2974 5 CATEGORY="development"
jozee@2974 6 SHORT_DESC="firefox devel files"
jozee@3126 7 MAINTAINER="jozee@slitaz.org"
slaxemulator@11324 8 DEPENDS="alsa-lib sqlite cairo dbus-glib pango atk \
pascal@6407 9 libgio xorg-libXt xorg-libXinerama \
pascal@5001 10 xorg-libXcursor xorg-libXcomposite xorg-libXext xorg-libXdamage libxcb \
slaxemulator@6443 11 xorg-libSM xorg-libICE"
jozee@2974 12 WANTED="firefox"
jozee@2974 13 WEB_SITE="http://www.mozilla.org/"
jozee@2974 14
jozee@2974 15 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2974 16 genpkg_rules()
jozee@2974 17 {
jozee@3126 18 mkdir -p $fs/usr/lib/pkgconfig
slaxemulator@11324 19 cp -a $_pkg/usr/lib/firefox-devel $fs/usr/lib
jozee@2974 20 cp -a $_pkg/usr/include $fs/usr
pankso@3818 21
pascal@4525 22 # Gecko 1.9.0 compatibility...
slaxemulator@6335 23 #ln -s npfunctions.h $fs/usr/include/firefox-$VERSION/stable/npupp.h
pascal@4525 24
jozee@3126 25 # /usr/share/idl folder should also be in firefox-dev
jozee@2974 26 cp -a $_pkg/usr/share $fs/usr
pankso@3818 27
jozee@3126 28 # copy missing *.pc files
slaxemulator@9844 29 cp -a $stuff/*.pc $fs/usr/lib/pkgconfig
pankso@3818 30
jozee@3126 31 # copy missing xpidl files
slaxemulator@11324 32 cp -a $_pkg/typelib/xpidl/xpidl $fs/usr/lib/firefox-devel/sdk/lib
slaxemulator@11324 33
slaxemulator@11324 34 # fix version
slaxemulator@11324 35 sed -i "s/3\.5\../$VERSION/" $fs/usr/lib/pkgconfig/*
jozee@2974 36 }
pascal@6459 37
pascal@6459 38 # Pre and post install commands for Tazpkg.
pascal@6459 39 post_install()
pascal@6459 40 {
pascal@6459 41 for i in usr/share/idl/firefox- usr/include/firefox- \
slaxemulator@11324 42 usr/lib/firefox-devel- ; do
slaxemulator@11324 43 for j in $(ls -d $1/$i* 2>/dev/null); do
pascal@6459 44 [ "${j##*-}" = "$VERSION" ] && continue
slaxemulator@11324 45 [ -d $j ] && rm -rf $j
pascal@6459 46 done
pascal@6459 47 done
pascal@6459 48 }