wok-next view pidgin/receipt @ rev 20200
libgnomeprint: add bison 3 patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 17:38:15 2017 +0100 (2017-11-03) |
parents | c48e38679720 |
children | 7639f09792cf |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="pidgin"
4 VERSION="2.12.0"
5 CATEGORY="network"
6 SHORT_DESC="Instant messaging client using GTK+."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.pidgin.im/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 BUILD_DEPENDS="gtk+-dev libgcrypt-dev gnutls-dev \
13 startup-notification-dev libgpg-error-dev libxml2-dev libxcb-dev \
14 libidn-dev libtasn1-dev intltool expat-dev nss-dev \
15 ncurses-dev xcb-util-dev gmp-dev"
16 SPLIT="libpurple libpurple-dev pidgin pidgin-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 touch pidgin.desktop package_revision_raw.txt
22 MSGFMT=/usr/bin/msgfmt
24 # Pidgin doesn't explicitly link to libm
25 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
26 ./configure \
27 --prefix=/usr \
28 --infodir=/usr/share/info \
29 --mandir=/usr/share/man \
30 --disable-perl \
31 --disable-screensaver \
32 --disable-gtkspell \
33 --disable-gstreamer \
34 --disable-gstreamer-interfaces \
35 --disable-meanwhile \
36 --disable-avahi \
37 --disable-nm \
38 --disable-tcl \
39 --disable-tk \
40 --disable-dbus \
41 --disable-farsight \
42 --disable-vv \
43 --disable-idn \
44 --disable-sm \
45 $CONFIGURE_ARGS &&
46 make -j 4 &&
47 make install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 case $PACKAGE in
54 pidgin)
55 PROVIDE="purple"
56 DEPENDS="gtk+ gnutls libgcrypt libgpg-error libpurple \
57 startup-notification gmp xorg-libXdamage libxml2 \
58 libxcb xcb-util libidn ncurses libtasn1 nss"
59 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
60 cp -a $install/usr/bin $fs/usr
61 cp -a $install/usr/lib/*.so* $fs/usr/lib
62 cp -a $install/usr/lib/pidgin $fs/usr/lib
63 cp -a $install/usr/lib/purple-2 $fs/usr/lib
64 rm $fs/usr/lib/pidgin/*.la
65 rm $fs/usr/lib/purple-2/*.la
66 rm $fs/usr/lib/pidgin/*.so*
67 rm $fs/usr/lib/purple-2/*.so*
68 cp -a $install/usr/share/purple $fs/usr/share
69 cp -a $install/usr/share/pixmaps/pidgin $fs/usr/share/pixmaps
70 cp -a $install/usr/share/icons/hicolor/24x24/apps/* $fs/usr/share/pixmaps
71 ;;
72 pidgin-dev)
73 CAT="development|Pidgin devel files."
74 DEPENDS="pkg-config"
75 mkdir -p $fs/usr/lib/pkgconfig $fs/usr/lib/pidgin $fs/usr/include/pidgin $fs/usr/share
76 cp -a $install/usr/lib/pidgin/*.la $fs/usr/lib/pidgin
77 cp -a $install/usr/lib/pkgconfig/pidgin.pc $fs/usr/lib/pkgconfig
78 cp -a $install/usr/include/pidgin $fs/usr/include
79 cp -a $install/usr/share/aclocal $fs/usr/share
80 ;;
81 libpurple)
82 CAT="network|Purple library."
83 mkdir -p $fs/usr/lib/purple-2
84 cp -a $install/usr/lib/libpurple.so* $fs/usr/lib
85 cp -a $install/usr/lib/purple-2/*.so* $fs/usr/lib/purple-2
86 ;;
87 libpurple-dev)
88 CAT="development|Purple library devel files."
89 DEPENDS="pkg-config glib-dev libpurple"
90 mkdir -p $fs/usr/lib/pkgconfig $fs/usr/lib/purple-2 $fs/usr/include/libpurple
91 cp -a $install/usr/lib/libpurple.la $fs/usr/lib
92 cp -a $install/usr/lib/purple-2/*.la $fs/usr/lib/purple-2
93 cp -a $install/usr/lib/pkgconfig/purple.pc $fs/usr/lib/pkgconfig
94 cp -a $install/usr/include/libpurple $fs/usr/include
95 ;;
96 esac
97 }