wok view inkscape/receipt @ rev 25065

grub4dos: binutils 2.37 support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 09 15:38:57 2022 +0000 (23 months ago)
parents 323df561b338
children
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 util-linux-uuid-dev"
24 COOKOPTS="!svgz !fixdesktops"
26 # What is the latest version available today?
27 current_version()
28 {
29 wget -O - https://inkscape.org/release/ 2>/dev/null | \
30 sed '/Inkscape [0-9]/!d;s|.*Inkscape ||;s| .*||;q'
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 # for patchfile in $(cat $stuff/patches/series); do
37 # patch -p1 -i $stuff/patches/$patchfile
38 # done
40 # hack to define '_' and 'Q_' functions
41 rm src/2geom/!PLEASE* # avoid sed errors
42 rm src/libdepixelize/!PLEASE* # avoid sed errors
43 for file in $(find $src/src -type f)
44 do
45 sed -i 's|glibmm/i18n.h|glib/gi18n.h|g' $file
46 done
48 mkdir _build
49 cd _build
50 cmake .. \
51 -DCMAKE_INSTALL_PREFIX=/usr \
52 -DCMAKE_BUILD_TYPE=Release &&
53 make $MAKEFLAGS &&
54 make DESTDIR=$DESTDIR install
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr/lib/inkscape
61 mkdir -p $fs/usr/share
63 cp -a $install/usr/bin $fs/usr
64 cp -a $install/usr/lib/inkscape/lib*.so* \
65 $fs/usr/lib/inkscape
67 # Copy all Inkscape files and remove tutorials (19,2 Mb) + misc files
68 cp -a $install/usr/share/inkscape $fs/usr/share
69 rm -rf $fs/usr/share/inkscape/clipart
70 rm -rf $fs/usr/share/inkscape/tutorials
71 rm -rf $fs/usr/share/inkscape/examples
73 # Desktop file
74 cp -a $install/usr/share/applications $fs/usr/share
76 # Icons
77 cp -a $install/usr/share/icons $fs/usr/share
78 rm -rf $fs/usr/share/icons/hicolor/256x256
79 }