wok-6.x view inkscape/receipt @ rev 24299
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 15 15:21:40 2022 +0000 (2022-01-15) |
parents | a8233c46d85f |
children | af8d823a3077 |
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 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # for patchfile in $(cat $stuff/patches/series); do
30 # patch -p1 -i $stuff/patches/$patchfile
31 # done
33 # hack to define '_' and 'Q_' functions
34 rm src/2geom/!PLEASE* # avoid sed errors
35 rm src/libdepixelize/!PLEASE* # avoid sed errors
36 for file in $(find $src/src -type f)
37 do
38 sed -i 's|glibmm/i18n.h|glib/gi18n.h|g' $file
39 done
41 mkdir _build
42 cd _build
43 cmake .. \
44 -DCMAKE_INSTALL_PREFIX=/usr \
45 -DCMAKE_BUILD_TYPE=Release &&
46 make $MAKEFLAGS &&
47 make DESTDIR=$DESTDIR install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/lib/inkscape
54 mkdir -p $fs/usr/share
56 cp -a $install/usr/bin $fs/usr
57 cp -a $install/usr/lib/inkscape/lib*.so* \
58 $fs/usr/lib/inkscape
60 # Copy all Inkscape files and remove tutorials (19,2 Mb) + misc files
61 cp -a $install/usr/share/inkscape $fs/usr/share
62 rm -rf $fs/usr/share/inkscape/clipart
63 rm -rf $fs/usr/share/inkscape/tutorials
64 rm -rf $fs/usr/share/inkscape/examples
66 # Desktop file
67 cp -a $install/usr/share/applications $fs/usr/share
69 # Icons
70 cp -a $install/usr/share/icons $fs/usr/share
71 rm -rf $fs/usr/share/icons/hicolor/256x256
72 }