wok annotate inkscape/receipt @ rev 21206

Add lbzip2 (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 07 20:47:35 2019 +0200 (2019-04-07)
parents 19aed4fcf18c
children 793ee168a093
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
pascal@21153 34 find . -name Makefile.in | xargs sed -i 's|@AUTOMAKE@|automake|'
pankso@148 35 ./configure \
pankso@148 36 --prefix=/usr \
pankso@148 37 --mandir=/usr/share/man \
pascal@1538 38 $CONFIGURE_ARGS &&
gokhlayeh@11574 39 make $MAKEFLAGS &&
slaxemulator@11006 40 make DESTDIR=$DESTDIR install
pankso@148 41 }
pankso@148 42
pankso@148 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@148 44 genpkg_rules()
pankso@148 45 {
pankso@2577 46 mkdir -p $fs/usr/share
slaxemulator@12992 47 cp -a $install/usr/bin $fs/usr
pankso@2577 48
pankso@2577 49 # Copy all Inkscape files and remove tutorials (19,2 Mb) + misc files
slaxemulator@12992 50 cp -a $install/usr/share/inkscape $fs/usr/share
pankso@2577 51 rm -rf $fs/usr/share/inkscape/clipart
pankso@148 52 rm -rf $fs/usr/share/inkscape/tutorials
pankso@148 53 rm -rf $fs/usr/share/inkscape/examples
al@17288 54
al@17288 55 # Desktop file
al@17288 56 cp -a $install/usr/share/applications $fs/usr/share
al@17288 57 DESKTOP=$fs/usr/share/applications/inkscape.desktop
al@17288 58 sed -i '/^Name/d; s|X-GNOME-Full||g' $DESKTOP
al@17288 59 sdft $DESKTOP -g -tf -te -i
al@17288 60
al@17288 61 # Icons
al@17288 62 cp -a $install/usr/share/icons $fs/usr/share
al@17288 63 rm -rf $fs/usr/share/icons/hicolor/256x256
pankso@148 64 }