wok view granite/receipt @ rev 15838

Up: fox to 1.6.49.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Jan 27 05:11:58 2014 +0000 (2014-01-27)
parents
children 4ec0694bfc21
line source
1 # SliTaz package receipt.
3 PACKAGE="granite"
4 VERSION="0.2.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="A development library for elementary development"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="LGPL3"
9 WEB_SITE="https://launchpad.net/granite"
10 BRANCH="535"
11 TARBALL="$PACKAGE-$BRANCH.tar.bz2"
12 WGET_URL="bzr|lp:granite"
14 DEPENDS="gtk+3 libgee"
15 BUILD_DEPENDS="bazaar cmake vala gtk+3-dev libgio-dev glib-dev libgee-dev \
16 gobject-introspection-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # gee-1.0 is old while gee-0.8 is latest ;)
22 sed -i 's|gee-1.0|gee-0.8|g; s|Gee-1.0|Gee-0.8|g' \
23 $(grep -li gee-1.0 $(find . -type f))
25 mkdir build &&
26 cd build &&
27 cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
28 make &&
29 make DESTDIR=$install install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p \
36 $fs/usr/lib \
37 $fs/usr/share
38 cp -a $install/usr/lib/*.so* $fs/usr/lib
39 # icons converted from svg
40 for size in 16 22 24 32 48; do
41 ifolder=$fs/usr/share/icons/hicolor/${size}x${size}/actions
42 mkdir -p $ifolder
43 cp $stuff/${size}.png $ifolder/application-menu.png
44 done
45 # localization
46 . $WOK/slitaz-i18n/stuff/locale-pack.conf
47 for lang in $LOCALE_PACK; do
48 langf=$install/usr/share/locale/$lang
49 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
50 done
51 }