wok-next annotate granite/receipt @ rev 19591

Up dialog (1.3-20160828).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jan 21 15:37:43 2017 +0200 (2017-01-21)
parents ce9148142ee8
children e70c0b9c5adf
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@15721 18 # Rules to configure and make the package.
pascal@15721 19 compile_rules()
pascal@15721 20 {
pascal@15721 21 # gee-1.0 is old while gee-0.8 is latest ;)
pascal@15721 22 sed -i 's|gee-1.0|gee-0.8|g; s|Gee-1.0|Gee-0.8|g' \
pascal@15721 23 $(grep -li gee-1.0 $(find . -type f))
pascal@15721 24
pascal@15721 25 mkdir build &&
pascal@15721 26 cd build &&
pascal@15721 27 cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
pascal@15721 28 make &&
pascal@15721 29 make DESTDIR=$install install
pascal@15721 30 }
pascal@15721 31
pascal@15721 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15721 33 genpkg_rules()
pascal@15721 34 {
pascal@15721 35 mkdir -p \
pascal@15721 36 $fs/usr/lib \
al@16691 37 $fs/usr/share/locale
pascal@15721 38 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@15721 39 # icons converted from svg
pascal@15721 40 for size in 16 22 24 32 48; do
pascal@15721 41 ifolder=$fs/usr/share/icons/hicolor/${size}x${size}/actions
pascal@15721 42 mkdir -p $ifolder
pascal@15721 43 cp $stuff/${size}.png $ifolder/application-menu.png
pascal@15721 44 done
pascal@15721 45 # localization
pascal@15721 46 . $WOK/slitaz-i18n/stuff/locale-pack.conf
pascal@15721 47 for lang in $LOCALE_PACK; do
pascal@15721 48 langf=$install/usr/share/locale/$lang
pascal@15721 49 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
pascal@15721 50 done
pascal@15721 51 }