wok-6.x annotate granite/receipt @ rev 25171

updated python-docutils (0.16 -> 0.18.1)
author Hans-G?nter Theisgen
date Fri Jul 01 16:17:26 2022 +0100 (2022-07-01)
parents b23839382755
children
rev   line source
pascal@15721 1 # SliTaz package receipt.
pascal@15721 2
pascal@15721 3 PACKAGE="granite"
pascal@15721 4 VERSION="0.2.1"
pascal@15721 5 CATEGORY="system-tools"
pascal@15721 6 SHORT_DESC="A development library for elementary development"
pascal@15721 7 MAINTAINER="al.bobylev@gmail.com"
pascal@15721 8 LICENSE="LGPL3"
pascal@15721 9 WEB_SITE="https://launchpad.net/granite"
pascal@15721 10 BRANCH="535"
pascal@15721 11 TARBALL="$PACKAGE-$BRANCH.tar.bz2"
pascal@15721 12 WGET_URL="bzr|lp:granite"
pascal@15721 13
pascal@15721 14 DEPENDS="gtk+3 libgee"
pascal@15721 15 BUILD_DEPENDS="bazaar cmake vala gtk+3-dev libgio-dev glib-dev libgee-dev \
pascal@15721 16 gobject-introspection-dev"
pascal@15721 17
pascal@24434 18 # What is the latest version available today?
pascal@24434 19 current_version()
pascal@24434 20 {
pascal@24434 21 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24434 22 sed '/Latest version is/!d;s|.*is ||'
pascal@24434 23 }
pascal@24434 24
pascal@15721 25 # Rules to configure and make the package.
pascal@15721 26 compile_rules()
pascal@15721 27 {
pascal@20617 28 sed -i 's|~Notebook|~DynamicNotebook|' lib/Widgets/DynamicNotebook.vala
pascal@20617 29 sed -i 's|ListSt|Gtk.&|;s|ove (|&ref |' lib/Widgets/ContractorView.vala
pascal@20617 30
pascal@15721 31 # gee-1.0 is old while gee-0.8 is latest ;)
pascal@15721 32 sed -i 's|gee-1.0|gee-0.8|g; s|Gee-1.0|Gee-0.8|g' \
pascal@15721 33 $(grep -li gee-1.0 $(find . -type f))
pascal@15721 34
pascal@15721 35 mkdir build &&
pascal@15721 36 cd build &&
pascal@15721 37 cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
pascal@15721 38 make &&
pascal@15721 39 make DESTDIR=$install install
pascal@15721 40 }
pascal@15721 41
pascal@15721 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15721 43 genpkg_rules()
pascal@15721 44 {
pascal@15721 45 mkdir -p \
pascal@15721 46 $fs/usr/lib \
al@16691 47 $fs/usr/share/locale
pascal@15721 48 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@15721 49 # icons converted from svg
pascal@15721 50 for size in 16 22 24 32 48; do
pascal@15721 51 ifolder=$fs/usr/share/icons/hicolor/${size}x${size}/actions
pascal@15721 52 mkdir -p $ifolder
pascal@15721 53 cp $stuff/${size}.png $ifolder/application-menu.png
pascal@15721 54 done
pascal@15721 55 # localization
pascal@15721 56 . $WOK/slitaz-i18n/stuff/locale-pack.conf
pascal@15721 57 for lang in $LOCALE_PACK; do
pascal@15721 58 langf=$install/usr/share/locale/$lang
pascal@15721 59 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
pascal@15721 60 done
pascal@15721 61 }