wok view inkscape/receipt @ rev 23817

updated inkscape
author Hans-G?nter Theisgen
date Wed May 27 07:59:47 2020 +0100 (2020-05-27)
parents 6a1c02baeaf8
children 55afdfc78622
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 gettext 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 for file in $(find $src/src -type f)
33 do
34 sed -i 's|glibmm/i18n.h|glib/gi18n.h|g' $file
35 done
37 # find . -name Makefile.in | xargs sed -i 's|@AUTOMAKE@|automake|'
38 # ./configure \
39 # --prefix=/usr \
40 # --mandir=/usr/share/man \
41 # $CONFIGURE_ARGS &&
42 mkdir _build
43 cd _build
44 cmake .. \
45 -DCMAKE_INSTALL_PREFIX=/usr \
46 -DCMAKE_BUILD_TYPE=Release &&
47 make $MAKEFLAGS &&
48 make DESTDIR=$DESTDIR install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/share
55 cp -a $install/usr/bin $fs/usr
57 # Copy all Inkscape files and remove tutorials (19,2 Mb) + misc files
58 cp -a $install/usr/share/inkscape $fs/usr/share
59 rm -rf $fs/usr/share/inkscape/clipart
60 rm -rf $fs/usr/share/inkscape/tutorials
61 rm -rf $fs/usr/share/inkscape/examples
63 # Desktop file
64 cp -a $install/usr/share/applications $fs/usr/share
65 DESKTOP=$fs/usr/share/applications/inkscape.desktop
66 sed -i '/^Name/d; s|X-GNOME-Full||g' $DESKTOP
67 sdft $DESKTOP -g -tf -te -i
69 # Icons
70 cp -a $install/usr/share/icons $fs/usr/share
71 rm -rf $fs/usr/share/icons/hicolor/256x256
72 }