wok view inkscape/receipt @ rev 18670

taziso, iso2exe.sh: add custom config support ; awstat-hotspot, awesome, avant-window-navigator: update pre/post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 04 21:23:22 2015 +0100 (2015-12-04)
parents 807198b4ecff
children dcaa989c1de7
line source
1 # SliTaz package receipt.
3 PACKAGE="inkscape"
4 VERSION="0.91"
5 CATEGORY="graphics"
6 SHORT_DESC="vector-based drawing program"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.inkscape.org"
11 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 WGET_URL="$WEB_SITE/en/gallery/item/3860/$TARBALL"
13 TAGS="image vector editor svg"
15 DEPENDS="gc gtk+ libxslt libsigc++ glibmm gtkmm libxml2 libpng popt \
16 xorg-libXdamage gsl aspell libgiomm lcms gtkspell libgomp poppler gcc-lib-base"
17 BUILD_DEPENDS="gc-dev gtk+-dev libxslt-dev libsigc++-dev glibmm-dev \
18 gtkmm-dev atkmm-dev popt-dev libgiomm-dev gsl gsl-dev lcms-dev gtkspell \
19 gtkspell-dev cairomm-dev libboost-dev libxml2-dev zlib-dev autoconf pkg-config \
20 intltool xorg-libXau-dev xorg-libXdmcp-dev automake libtool"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 for patchfile in $(cat $stuff/patches/series); do
26 patch -p1 -i $stuff/patches/$patchfile
27 done
29 # hack to define '_' and 'Q_' functions
30 for file in $(find $src/src -type f); do
31 sed -i 's|glibmm/i18n.h|glib/gi18n.h|g' $file
32 done
34 ./configure \
35 --prefix=/usr \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS &&
38 make $MAKEFLAGS &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share
46 cp -a $install/usr/bin $fs/usr
48 # Copy all Inkscape files and remove tutorials (19,2 Mb) + misc files
49 cp -a $install/usr/share/inkscape $fs/usr/share
50 rm -rf $fs/usr/share/inkscape/clipart
51 rm -rf $fs/usr/share/inkscape/tutorials
52 rm -rf $fs/usr/share/inkscape/examples
54 # Desktop file
55 cp -a $install/usr/share/applications $fs/usr/share
56 DESKTOP=$fs/usr/share/applications/inkscape.desktop
57 sed -i '/^Name/d; s|X-GNOME-Full||g' $DESKTOP
58 sdft $DESKTOP -g -tf -te -i
60 # Icons
61 cp -a $install/usr/share/icons $fs/usr/share
62 rm -rf $fs/usr/share/icons/hicolor/256x256
63 }