wok-next view inkscape/receipt @ rev 2234

pam-dev: add /usr/include/pam
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 14 10:01:02 2009 +0000 (2009-02-14)
parents b64b8906e6a7
children be4b9618ea05
line source
1 # SliTaz package receipt.
3 PACKAGE="inkscape"
4 VERSION="0.45.1"
5 CATEGORY="graphics"
6 SHORT_DESC="Vector drawing application."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gc gtk+ libxslt libsigc++ glibmm gtkmm libxml2 libpng popt PyXML"
9 BUILD_DEPENDS="gc-dev gtk+-dev libxslt-dev libsigc++-dev glibmm-dev gtkmm-dev popt-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.inkscape.org/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 grep -rl glib/gmessages . | while read file; do
19 echo "Patching $file..."
20 sed -i 's|glib/gmessages|glib|' $file
21 done
22 ./configure \
23 --prefix=/usr \
24 --mandir=/usr/share/man \
25 --disable-lcms \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/locale
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
37 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
39 # Copy all Inkscape files and remove tutorials (19,2 Mb),
40 # examples + screens
41 cp -a $_pkg/usr/share/inkscape $fs/usr/share
42 rm -rf $fs/usr/share/inkscape/tutorials
43 rm -rf $fs/usr/share/inkscape/examples
44 rm -rf $fs/usr/share/inkscape/screens/keys.de.svg
45 rm -rf $fs/usr/share/inkscape/screens/keys.sl.svg
47 strip -s $fs/usr/bin/* 2>/dev/null
48 }