wok-next view libmateweather/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 | 6fab3264ba87 |
children | 757d032c55c7 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libmateweather"
4 VERSION="1.18.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Library to access weather information from online services"
7 MAINTAINER="yuripourre@gmail.com"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://github.com/mate-desktop/libmateweather"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/mate-desktop/libmateweather/archive/v$VERSION.tar.gz"
14 BUILD_DEPENDS="mate-common gtk-doc gtk+3-dev libsoup-dev tzdata"
15 SPLIT="libmateweather-misc-icons libmateweather-misc-locales libmateweather-dev"
17 compile_rules() {
18 ./autogen.sh \
19 --sysconfdir=/etc \
20 --localstatedir=/var \
21 --enable-locations-compression \
22 $CONFIGURE_ARGS &&
23 make &&
24 make install
25 }
27 genpkg_rules() {
28 case $PACKAGE in
29 libmateweather)
30 copy @std
31 # most of icons -> libmateweather-misc-icons
32 for i in 22x22 24x24 32x32 scalable; do
33 rm -r $fs/usr/share/icons/mate/$i
34 done
35 # most of locales -> libmateweather-misc-locales
36 rm $fs/usr/share/libmateweather/*.gz
37 for i in de es fr pt_BR ru; do
38 cp $install/usr/share/libmateweather/Locations.$i.xml.gz \
39 $fs/usr/share/libmateweather
40 done
41 DEPENDS="atk bzlib cairo fontconfig freetype gdk-pixbuf glib gtk+3 \
42 libffi libharfbuzz liblzma libpng16 libsoup libsqlite3 libxml2 \
43 pango pcre util-linux-blkid util-linux-mount util-linux-uuid \
44 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender \
45 xorg-libxcb xorg-pixman zlib"
46 ;;
47 libmateweather-misc-icons)
48 copy icons/mate/ @rm
49 CAT="customization|big icons"
50 DEPENDS="libmateweather"
51 ;;
52 libmateweather-misc-locales)
53 copy @std @rm
54 CAT="localization|different locales"
55 DEPENDS="libmateweather"
56 ;;
57 *-dev)
58 copy @dev
59 DEPENDS="${SPLIT/$PACKAGE/} atk-dev bzip2-dev cairo-dev \
60 fontconfig-dev freetype-dev gdk-pixbuf-dev glib-dev gtk+3-dev \
61 harfbuzz-dev libffi-dev libpng16-dev libsoup-dev libxml2-dev \
62 pango-dev pcre-dev sqlite3-dev util-linux-blkid-dev \
63 util-linux-mount-dev util-linux-uuid-dev xorg-libX11-dev \
64 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXext-dev \
65 xorg-libXrender-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev"
66 ;;
67 esac
68 TAGS="MATE"
69 }