wok-next view cairo-compmgr-core/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | bf4cf6b0f742 |
children | bce36a298f1e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cairo-compmgr-core"
4 VERSION="0.3.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Cairo composite manager - core files"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://cairo-compmgr.tuxfamily.org/"
10 SOURCE="cairo-compmgr"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WGET_URL="http://download.tuxfamily.org/ccm/$SOURCE/$TARBALL"
14 BUILD_DEPENDS="xorg-libXcomposite-dev xorg-libXdamage-dev xorg-libXext-dev \
15 xorg-libXi-dev xorg-libSM-dev cairo-dev pixman-dev gtk+-dev vala \
16 xorg-libICE-dev xorg-libX11-dev util-linux-uuid-dev intltool"
17 SPLIT="cairo-compmgr-dev cairo-compmgr-doc cairo-compmgr-plugins \
18 cairo-compmgr-vala libcairo-compmgr0 libcairo-compmgr-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 # make needed pkg-config file
24 ln -s $(ls /usr/lib/pkgconfig/libvala-*.pc | sed q) /usr/lib/pkgconfig/vala-1.0.pc
26 # localization
27 cp -a $stuff/cairo-compmgr.pot $src/po
28 cp -a $stuff/ru.po $src/po
30 export LDFLAGS="$LDFLAGS $(pkg-config --libs ice gmodule-2.0 x11)"
32 ./configure $CONFIGURE_ARGS &&
33 make &&
34 make install
35 rm -f $install/usr/share/applications/*
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 case $PACKAGE in
42 cairo-compmgr-core)
43 DEPENDS="libbfd libcairo-compmgr0"
44 mkdir -p \
45 $fs/usr/bin \
46 $fs/usr/share/applications \
47 $fs/usr/share/cairo-compmgr/ui \
48 $fs/usr/share/cairo-compmgr/schemas
49 cp -a $install/usr/bin/cairo-compmgr $fs/usr/bin
50 cp -a $install/usr/share/pixmaps $fs/usr/share
51 cp -a $install/usr/share/man $fs/usr/share
52 cp -a $stuff/cairo-compmgr.desktop $fs/usr/share/applications
53 cp -a $install/usr/share/cairo-compmgr/ui/ccm-preferences.ui \
54 $fs/usr/share/cairo-compmgr/ui
55 cp -a $install/usr/share/cairo-compmgr/schemas/ccm-display.schema-key \
56 $fs/usr/share/cairo-compmgr/schemas
57 ;;
58 cairo-compmgr-dev)
59 CAT="development|Cairo composite manager - development files"
60 DEPENDS="libcairo-compmgr-dev"
61 GENERIC_PIXMAPS="no"
62 mkdir -p $fs/usr
63 cp -a $install/usr/include $fs/usr
64 ;;
65 cairo-compmgr-doc)
66 CAT="development|Cairo composite manager - documentation"
67 DEPENDS="cairo-compmgr"
68 GENERIC_PIXMAPS="no"
69 mkdir -p $fs/usr/share
70 cp -a $install/usr/share/gtk-doc $fs/usr/share
71 ;;
72 cairo-compmgr-plugins)
73 CAT="development|Cairo composite manager - plugins"
74 DEPENDS="cairo-compmgr-core"
75 GENERIC_PIXMAPS="no"
76 mkdir -p \
77 $fs/usr/lib/cairo-compmgr \
78 $fs/usr/share/cairo-compmgr
79 cp -a $install/usr/lib/cairo-compmgr/lib*.so $fs/usr/lib/cairo-compmgr
80 cp -a $install/usr/lib/cairo-compmgr/*.plugin $fs/usr/lib/cairo-compmgr
81 cp -a $install/usr/share/cairo-compmgr/schemas \
82 $fs/usr/share/cairo-compmgr
83 # included in cairo-compmgr-core
84 rm -f $fs/usr/share/cairo-compmgr/schemas/ccm-display.schema-key
85 cp -a $install/usr/share/cairo-compmgr/ui $fs/usr/share/cairo-compmgr
86 ;;
87 cairo-compmgr-vala)
88 CAT="development|Cairo composite manager - Vala files"
89 DEPENDS="libcairo-compmgr-dev vala"
90 GENERIC_PIXMAPS="no"
91 mkdir -p $fs/usr/share
92 cp -a $install/usr/share/vala $fs/usr/share
93 ;;
94 libcairo-compmgr0)
95 CAT="development|Cairo composite manager - library"
96 PROVIDE="libcairo-compmgr"
97 DEPENDS="gtk+ vala xorg-libSM xorg-libXi"
98 GENERIC_PIXMAPS="no"
99 mkdir -p $fs/usr/lib
100 cp -a $install/usr/lib/*.so* $fs/usr/lib
101 ;;
102 libcairo-compmgr-dev)
103 CAT="development|Cairo composite manager - library development files"
104 DEPENDS="libcairo-compmgr0 pkg-config"
105 GENERIC_PIXMAPS="no"
106 mkdir -p $fs/usr/lib
107 cp -a $install/usr/lib/*.la $fs/usr/lib
108 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
109 ;;
110 esac
111 }