wok-6.x view granite/receipt @ rev 22288

linld: 8086 may load zImage (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 13 15:08:02 2019 +0100 (2019-11-13)
parents 4ec0694bfc21
children 1bd2c6414e5a
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 sed -i 's|~Notebook|~DynamicNotebook|' lib/Widgets/DynamicNotebook.vala
22 sed -i 's|ListSt|Gtk.&|;s|ove (|&ref |' lib/Widgets/ContractorView.vala
24 # gee-1.0 is old while gee-0.8 is latest ;)
25 sed -i 's|gee-1.0|gee-0.8|g; s|Gee-1.0|Gee-0.8|g' \
26 $(grep -li gee-1.0 $(find . -type f))
28 mkdir build &&
29 cd build &&
30 cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
31 make &&
32 make DESTDIR=$install install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p \
39 $fs/usr/lib \
40 $fs/usr/share/locale
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 # icons converted from svg
43 for size in 16 22 24 32 48; do
44 ifolder=$fs/usr/share/icons/hicolor/${size}x${size}/actions
45 mkdir -p $ifolder
46 cp $stuff/${size}.png $ifolder/application-menu.png
47 done
48 # localization
49 . $WOK/slitaz-i18n/stuff/locale-pack.conf
50 for lang in $LOCALE_PACK; do
51 langf=$install/usr/share/locale/$lang
52 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
53 done
54 }