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

updated freetds and freetds-dev (1.1.24 -> 1.3.9)
author Hans-G?nter Theisgen
date Sun Feb 27 07:32:20 2022 +0100 (2022-02-27)
parents b23839382755
children
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/Latest version is/!d;s|.*is ||'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's|~Notebook|~DynamicNotebook|' lib/Widgets/DynamicNotebook.vala
29 sed -i 's|ListSt|Gtk.&|;s|ove (|&ref |' lib/Widgets/ContractorView.vala
31 # gee-1.0 is old while gee-0.8 is latest ;)
32 sed -i 's|gee-1.0|gee-0.8|g; s|Gee-1.0|Gee-0.8|g' \
33 $(grep -li gee-1.0 $(find . -type f))
35 mkdir build &&
36 cd build &&
37 cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
38 make &&
39 make DESTDIR=$install install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p \
46 $fs/usr/lib \
47 $fs/usr/share/locale
48 cp -a $install/usr/lib/*.so* $fs/usr/lib
49 # icons converted from svg
50 for size in 16 22 24 32 48; do
51 ifolder=$fs/usr/share/icons/hicolor/${size}x${size}/actions
52 mkdir -p $ifolder
53 cp $stuff/${size}.png $ifolder/application-menu.png
54 done
55 # localization
56 . $WOK/slitaz-i18n/stuff/locale-pack.conf
57 for lang in $LOCALE_PACK; do
58 langf=$install/usr/share/locale/$lang
59 [ -d $langf ] && cp -a $langf $fs/usr/share/locale
60 done
61 }