wok view inkscape/receipt @ rev 23834

Up alsa-lib (1.2.2), apache-ant (1.10.8), apache (2.4.43), lcms2 (2.10), libexit (0.6.22)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 01 09:10:42 2020 +0000 (2020-06-01)
parents 55afdfc78622
children 323df561b338
line source
1 # SliTaz package receipt.
3 PACKAGE="inkscape"
4 VERSION="0.92.5"
5 CATEGORY="graphics"
6 TAGS="image vector editor svg"
7 SHORT_DESC="Vector-based drawing program."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.inkscape.org"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="https://media.inkscape.org/dl/resources/file/$TARBALL"
15 DEPENDS="aspell gc gcc-lib-base glibmm gsl gtk+ gtkmm gtkspell
16 lcms2 libgiomm libgomp libpng libsigc++ libxml2 libxslt poppler
17 popt xorg-libXdamage"
18 BUILD_DEPENDS="atkmm-dev cairomm-dev cmake gc-dev gettext glibmm-dev
19 gtk+-dev gtkmm-dev gsl-dev gtkspell-dev intltool lcms2-dev
20 libboost-dev libgiomm-dev libsigc++-dev libtool libxml2-dev
21 libxslt-dev pkg-config poppler-dev popt-dev xorg-libXau-dev
22 xorg-libXdmcp-dev zlib-dev"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # for patchfile in $(cat $stuff/patches/series); do
28 # patch -p1 -i $stuff/patches/$patchfile
29 # done
31 # hack to define '_' and 'Q_' functions
32 rm src/2geom/!PLEASE* # avoid sed errors
33 rm src/libdepixelize/!PLEASE* # avoid sed errors
34 for file in $(find $src/src -type f)
35 do
36 sed -i 's|glibmm/i18n.h|glib/gi18n.h|g' $file
37 done
39 mkdir _build
40 cd _build
41 cmake .. \
42 -DCMAKE_INSTALL_PREFIX=/usr \
43 -DCMAKE_BUILD_TYPE=Release &&
44 make $MAKEFLAGS &&
45 make DESTDIR=$DESTDIR install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/lib/inkscape
52 mkdir -p $fs/usr/share
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/lib/inkscape/lib*.so* \
56 $fs/usr/lib/inkscape
58 # Copy all Inkscape files and remove tutorials (19,2 Mb) + misc files
59 cp -a $install/usr/share/inkscape $fs/usr/share
60 rm -rf $fs/usr/share/inkscape/clipart
61 rm -rf $fs/usr/share/inkscape/tutorials
62 rm -rf $fs/usr/share/inkscape/examples
64 # Desktop file
65 cp -a $install/usr/share/applications $fs/usr/share
66 DESKTOP=$fs/usr/share/applications/inkscape.desktop
67 sed -i '/^Name/d; s|X-GNOME-Full||g' $DESKTOP
68 sdft $DESKTOP -g -tf -te -i
70 # Icons
71 cp -a $install/usr/share/icons $fs/usr/share
72 rm -rf $fs/usr/share/icons/hicolor/256x256
73 }