wok-6.x diff granite/receipt @ rev 16092
Add ffmpeg-compat (needed to build libvalhalla)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 16 14:14:43 2014 +0100 (2014-03-16) |
parents | |
children | 4ec0694bfc21 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/granite/receipt Sun Mar 16 14:14:43 2014 +0100 1.3 @@ -0,0 +1,51 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="granite" 1.7 +VERSION="0.2.1" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="A development library for elementary development" 1.10 +MAINTAINER="al.bobylev@gmail.com" 1.11 +LICENSE="LGPL3" 1.12 +WEB_SITE="https://launchpad.net/granite" 1.13 +BRANCH="535" 1.14 +TARBALL="$PACKAGE-$BRANCH.tar.bz2" 1.15 +WGET_URL="bzr|lp:granite" 1.16 + 1.17 +DEPENDS="gtk+3 libgee" 1.18 +BUILD_DEPENDS="bazaar cmake vala gtk+3-dev libgio-dev glib-dev libgee-dev \ 1.19 +gobject-introspection-dev" 1.20 + 1.21 +# Rules to configure and make the package. 1.22 +compile_rules() 1.23 +{ 1.24 + # gee-1.0 is old while gee-0.8 is latest ;) 1.25 + sed -i 's|gee-1.0|gee-0.8|g; s|Gee-1.0|Gee-0.8|g' \ 1.26 + $(grep -li gee-1.0 $(find . -type f)) 1.27 + 1.28 + mkdir build && 1.29 + cd build && 1.30 + cmake .. -DCMAKE_INSTALL_PREFIX=/usr && 1.31 + make && 1.32 + make DESTDIR=$install install 1.33 +} 1.34 + 1.35 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.36 +genpkg_rules() 1.37 +{ 1.38 + mkdir -p \ 1.39 + $fs/usr/lib \ 1.40 + $fs/usr/share 1.41 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.42 + # icons converted from svg 1.43 + for size in 16 22 24 32 48; do 1.44 + ifolder=$fs/usr/share/icons/hicolor/${size}x${size}/actions 1.45 + mkdir -p $ifolder 1.46 + cp $stuff/${size}.png $ifolder/application-menu.png 1.47 + done 1.48 + # localization 1.49 + . $WOK/slitaz-i18n/stuff/locale-pack.conf 1.50 + for lang in $LOCALE_PACK; do 1.51 + langf=$install/usr/share/locale/$lang 1.52 + [ -d $langf ] && cp -a $langf $fs/usr/share/locale 1.53 + done 1.54 +}