wok-current annotate firefox-dev/receipt @ rev 15164

Up xorg-xf86-input-void (1.4.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 15 18:48:58 2013 +0000 (2013-08-15)
parents 91baf8e30f65
children 7bb096863642
rev   line source
jozee@2974 1 # SliTaz package receipt.
jozee@2974 2
jozee@2974 3 PACKAGE="firefox-dev"
domcox@14962 4 VERSION="17.0.8esr"
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 {
domcox@14212 18 printf "Installing include files.."
domcox@14212 19 mkdir -p $fs/usr/include/$WANTED-$VERSION &&
domcox@14212 20 cp -rL $src/obj-firefox/dist/include/* $fs/usr/include/$WANTED-$VERSION
domcox@14212 21 status
pankso@3818 22
domcox@14212 23 printf "Installing libs files.."
domcox@14212 24 mkdir -p $fs/usr/lib/$WANTED-devel/sdk/bin/ply &&
domcox@14212 25 cp -rL $src/obj-firefox/dist/sdk/bin/*.py \
domcox@14212 26 $fs/usr/lib/$WANTED-devel/sdk/bin &&
domcox@14212 27 cp -rL $src/obj-firefox/dist/sdk/bin/ply/*.py \
domcox@14212 28 $fs/usr/lib/$WANTED-devel/sdk/bin/ply &&
domcox@14212 29 mkdir -p $fs/usr/lib/$WANTED-devel/sdk/lib &&
domcox@14212 30 cp -rL $src/obj-firefox/dist/sdk/lib/* \
domcox@14212 31 $fs/usr/lib/$WANTED-devel/sdk/lib
domcox@14212 32 status
domcox@14212 33
domcox@14212 34 # printf "Installing npapi files.."
domcox@14212 35 # mkdir -v $fs/usr/include/$WANTED-$VERSION/npapi &&
domcox@14212 36 # cp -a $src/dom/plugins/base/*.h $fs/usr/include/$WANTED-$VERSION/npapi
domcox@14212 37 # status
pascal@4525 38
jozee@3126 39 # /usr/share/idl folder should also be in firefox-dev
domcox@14212 40 printf "Installing idl files.."
domcox@14212 41 mkdir -p $fs/usr/share/$WANTED-$VERSION/idl &&
domcox@14212 42 cp -rL $src/obj-firefox/dist/idl/* $fs/usr/share/$WANTED-$VERSION/idl
domcox@14212 43 status
pankso@3818 44
jozee@3126 45 # copy missing *.pc files
domcox@14212 46 printf "Installing pkgconfig files.."
domcox@14212 47 mkdir -p $fs/usr/lib/pkgconfig &&
domcox@14212 48 cp -a $stuff/*.pc $fs/usr/lib/pkgconfig &&
slaxemulator@11324 49 # fix version
domcox@14212 50 sed -i "s/VERSION/$VERSION/" $fs/usr/lib/pkgconfig/*
domcox@14212 51 status
jozee@2974 52 }
pascal@6459 53
pascal@6459 54 # Pre and post install commands for Tazpkg.
pascal@6459 55 post_install()
pascal@6459 56 {
pascal@6459 57 for i in usr/share/idl/firefox- usr/include/firefox- \
slaxemulator@11324 58 usr/lib/firefox-devel- ; do
slaxemulator@11324 59 for j in $(ls -d $1/$i* 2>/dev/null); do
pascal@6459 60 [ "${j##*-}" = "$VERSION" ] && continue
slaxemulator@11324 61 [ -d $j ] && rm -rf $j
pascal@6459 62 done
pascal@6459 63 done
pascal@6459 64 }