wok-next view granite/receipt @ rev 20467
Up cookutils (1034), TiMidity++, alpine, caps, alsaequal
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Mar 08 01:13:43 2018 +0200 (2018-03-08) |
parents | e70c0b9c5adf |
children | bbddbb716008 |
line source
1 # SliTaz package receipt v2.
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 BUILD_DEPENDS="bazaar cmake vala gtk+3-dev glib-dev libgee-dev \
15 gobject-introspection-dev"
16 SPLIT="granite granite-demo granite-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 case $PACKAGE in
36 granite)
37 DEPENDS="gtk+3 libgee"
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 ;;
55 granite-dev)
56 CAT="development|Development files for granite"
57 DEPENDS="granite"
58 mkdir -p \
59 $fs/usr/lib \
60 $fs/usr/share
61 cp -a $install/usr/include $fs/usr
62 cp -a $install/usr/lib/girepository* $fs/usr/lib
63 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
64 cp -a $install/usr/share/gir* $fs/usr/share
65 cp -a $install/usr/share/vala $fs/usr/share
66 ;;
67 granite-demo)
68 CAT="development|Demo for granite"
69 DEPENDS="granite"
70 mkdir -p $fs/usr
71 cp -a $install/usr/bin $fs/usr
72 ;;
73 esac
74 }