wok annotate inkscape/receipt @ rev 25191
updated python-cryptography (2.8 -> 3.3.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 10:08:55 2022 +0100 (2022-07-13) |
parents | 323df561b338 |
children |
rev | line source |
---|---|
pankso@148 | 1 # SliTaz package receipt. |
pankso@148 | 2 |
pankso@148 | 3 PACKAGE="inkscape" |
Hans-G?nter@23817 | 4 VERSION="0.92.5" |
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@23817 | 10 WEB_SITE="https://www.inkscape.org" |
Hans-G?nter@22376 | 11 |
pascal@15002 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@23817 | 13 WGET_URL="https://media.inkscape.org/dl/resources/file/$TARBALL" |
pascal@15002 | 14 |
Hans-G?nter@23827 | 15 DEPENDS="aspell gc gcc-lib-base glibmm gsl gtk+ gtkmm gtkspell |
Hans-G?nter@23817 | 16 lcms2 libgiomm libgomp libpng libsigc++ libxml2 libxslt poppler |
Hans-G?nter@23817 | 17 popt xorg-libXdamage" |
Hans-G?nter@23817 | 18 BUILD_DEPENDS="atkmm-dev cairomm-dev cmake gc-dev gettext glibmm-dev |
Hans-G?nter@23817 | 19 gtk+-dev gtkmm-dev gsl-dev gtkspell-dev intltool lcms2-dev |
Hans-G?nter@22378 | 20 libboost-dev libgiomm-dev libsigc++-dev libtool libxml2-dev |
Hans-G?nter@22378 | 21 libxslt-dev pkg-config poppler-dev popt-dev xorg-libXau-dev |
mojo@23848 | 22 xorg-libXdmcp-dev zlib-dev util-linux-uuid-dev" |
mojo@23848 | 23 |
mojo@23848 | 24 COOKOPTS="!svgz !fixdesktops" |
pankso@148 | 25 |
pascal@24445 | 26 # What is the latest version available today? |
pascal@24445 | 27 current_version() |
pascal@24445 | 28 { |
pascal@24445 | 29 wget -O - https://inkscape.org/release/ 2>/dev/null | \ |
pascal@24445 | 30 sed '/Inkscape [0-9]/!d;s|.*Inkscape ||;s| .*||;q' |
pascal@24445 | 31 } |
pascal@24445 | 32 |
pankso@148 | 33 # Rules to configure and make the package. |
pankso@148 | 34 compile_rules() |
pankso@148 | 35 { |
Hans-G?nter@23817 | 36 # for patchfile in $(cat $stuff/patches/series); do |
Hans-G?nter@23817 | 37 # patch -p1 -i $stuff/patches/$patchfile |
Hans-G?nter@23817 | 38 # done |
al@17288 | 39 |
al@17289 | 40 # hack to define '_' and 'Q_' functions |
Hans-G?nter@23828 | 41 rm src/2geom/!PLEASE* # avoid sed errors |
Hans-G?nter@23828 | 42 rm src/libdepixelize/!PLEASE* # avoid sed errors |
Hans-G?nter@23817 | 43 for file in $(find $src/src -type f) |
Hans-G?nter@23817 | 44 do |
al@17289 | 45 sed -i 's|glibmm/i18n.h|glib/gi18n.h|g' $file |
Hans-G?nter@23817 | 46 done |
al@17289 | 47 |
Hans-G?nter@23817 | 48 mkdir _build |
Hans-G?nter@23817 | 49 cd _build |
Hans-G?nter@23817 | 50 cmake .. \ |
Hans-G?nter@23817 | 51 -DCMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@23817 | 52 -DCMAKE_BUILD_TYPE=Release && |
gokhlayeh@11574 | 53 make $MAKEFLAGS && |
slaxemulator@11006 | 54 make DESTDIR=$DESTDIR install |
pankso@148 | 55 } |
pankso@148 | 56 |
pankso@148 | 57 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@148 | 58 genpkg_rules() |
pankso@148 | 59 { |
Hans-G?nter@23827 | 60 mkdir -p $fs/usr/lib/inkscape |
pankso@2577 | 61 mkdir -p $fs/usr/share |
Hans-G?nter@23827 | 62 |
Hans-G?nter@23817 | 63 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23827 | 64 cp -a $install/usr/lib/inkscape/lib*.so* \ |
Hans-G?nter@23827 | 65 $fs/usr/lib/inkscape |
pankso@2577 | 66 |
pankso@2577 | 67 # Copy all Inkscape files and remove tutorials (19,2 Mb) + misc files |
Hans-G?nter@23817 | 68 cp -a $install/usr/share/inkscape $fs/usr/share |
Hans-G?nter@23817 | 69 rm -rf $fs/usr/share/inkscape/clipart |
Hans-G?nter@23817 | 70 rm -rf $fs/usr/share/inkscape/tutorials |
Hans-G?nter@23817 | 71 rm -rf $fs/usr/share/inkscape/examples |
al@17288 | 72 |
al@17288 | 73 # Desktop file |
Hans-G?nter@23817 | 74 cp -a $install/usr/share/applications $fs/usr/share |
al@17288 | 75 |
al@17288 | 76 # Icons |
Hans-G?nter@23817 | 77 cp -a $install/usr/share/icons $fs/usr/share |
Hans-G?nter@23817 | 78 rm -rf $fs/usr/share/icons/hicolor/256x256 |
pankso@148 | 79 } |