wok annotate inkscape/receipt @ rev 22687
at: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 19 18:20:59 2020 +0100 (2020-01-19) |
parents | 793ee168a093 |
children | bc1543f398f6 |
rev | line source |
---|---|
pankso@148 | 1 # SliTaz package receipt. |
pankso@148 | 2 |
pankso@148 | 3 PACKAGE="inkscape" |
yuripourre@17710 | 4 VERSION="0.91" |
pankso@207 | 5 CATEGORY="graphics" |
Hans-G?nter@22378 | 6 TAGS="image vector editor svg" |
Hans-G?nter@22378 | 7 SHORT_DESC="Vector-based drawing program." |
pankso@148 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 9 LICENSE="GPL2" |
Hans-G?nter@22376 | 10 WEB_SITE="http://www.inkscape.org" |
Hans-G?nter@22376 | 11 |
pascal@15002 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
yuripourre@17711 | 13 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
yuripourre@17711 | 14 WGET_URL="$WEB_SITE/en/gallery/item/3860/$TARBALL" |
pascal@15002 | 15 |
Hans-G?nter@22378 | 16 DEPENDS="aspell gc gcc-lib-base glibmm gsl gtk+ gtkmm gtkspell lcms |
Hans-G?nter@22378 | 17 libgiomm libgomp libpng libsigc++ libxml2 libxslt poppler popt |
Hans-G?nter@22378 | 18 xorg-libXdamage" |
Hans-G?nter@22378 | 19 BUILD_DEPENDS="atkmm-dev autoconf automake cairomm-dev gc-dev glibmm-dev |
Hans-G?nter@22378 | 20 gtk+-dev gtkmm-dev gsl-dev gtkspell-dev intltool lcms-dev |
Hans-G?nter@22378 | 21 libboost-dev libgiomm-dev libsigc++-dev libtool libxml2-dev |
Hans-G?nter@22378 | 22 libxslt-dev pkg-config poppler-dev popt-dev xorg-libXau-dev |
Hans-G?nter@22378 | 23 xorg-libXdmcp-dev zlib-dev" |
pankso@148 | 24 |
pankso@148 | 25 # Rules to configure and make the package. |
pankso@148 | 26 compile_rules() |
pankso@148 | 27 { |
al@17288 | 28 for patchfile in $(cat $stuff/patches/series); do |
al@17288 | 29 patch -p1 -i $stuff/patches/$patchfile |
al@17288 | 30 done |
al@17288 | 31 |
al@17289 | 32 # hack to define '_' and 'Q_' functions |
al@17289 | 33 for file in $(find $src/src -type f); do |
al@17289 | 34 sed -i 's|glibmm/i18n.h|glib/gi18n.h|g' $file |
al@17289 | 35 done |
al@17289 | 36 |
pascal@21153 | 37 find . -name Makefile.in | xargs sed -i 's|@AUTOMAKE@|automake|' |
pankso@148 | 38 ./configure \ |
pankso@148 | 39 --prefix=/usr \ |
pankso@148 | 40 --mandir=/usr/share/man \ |
pascal@1538 | 41 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 42 make $MAKEFLAGS && |
slaxemulator@11006 | 43 make DESTDIR=$DESTDIR install |
pankso@148 | 44 } |
pankso@148 | 45 |
pankso@148 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@148 | 47 genpkg_rules() |
pankso@148 | 48 { |
pankso@2577 | 49 mkdir -p $fs/usr/share |
slaxemulator@12992 | 50 cp -a $install/usr/bin $fs/usr |
pankso@2577 | 51 |
pankso@2577 | 52 # Copy all Inkscape files and remove tutorials (19,2 Mb) + misc files |
slaxemulator@12992 | 53 cp -a $install/usr/share/inkscape $fs/usr/share |
pankso@2577 | 54 rm -rf $fs/usr/share/inkscape/clipart |
pankso@148 | 55 rm -rf $fs/usr/share/inkscape/tutorials |
pankso@148 | 56 rm -rf $fs/usr/share/inkscape/examples |
al@17288 | 57 |
al@17288 | 58 # Desktop file |
al@17288 | 59 cp -a $install/usr/share/applications $fs/usr/share |
al@17288 | 60 DESKTOP=$fs/usr/share/applications/inkscape.desktop |
al@17288 | 61 sed -i '/^Name/d; s|X-GNOME-Full||g' $DESKTOP |
al@17288 | 62 sdft $DESKTOP -g -tf -te -i |
al@17288 | 63 |
al@17288 | 64 # Icons |
al@17288 | 65 cp -a $install/usr/share/icons $fs/usr/share |
al@17288 | 66 rm -rf $fs/usr/share/icons/hicolor/256x256 |
pankso@148 | 67 } |