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