wok annotate pidgin/receipt @ rev 24082

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 09 18:20:09 2021 +0000 (2021-07-09)
parents 5eee27c40050
children f9da3eefbc96
rev   line source
pankso@41 1 # SliTaz package receipt.
pankso@41 2
pankso@41 3 PACKAGE="pidgin"
devl547@16198 4 VERSION="2.10.9"
pankso@186 5 CATEGORY="network"
pankso@41 6 SHORT_DESC="Instant messaging client using GTK+."
pankso@41 7 MAINTAINER="pankso@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
pankso@41 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@22423 10 WEB_SITE="https://www.pidgin.im/"
pankso@41 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@16678 12 PROVIDE="purple"
pankso@41 13
slaxemulator@12419 14 DEPENDS="gtk+ gnutls libgcrypt libgpg-error startup-notification gmp \
slaxemulator@12419 15 xorg-libXdamage libxml2 libxcb xcb-util libidn ncursesw libtasn1 nss"
slaxemulator@12419 16 BUILD_DEPENDS="gtk+-dev libgcrypt-dev gnutls-dev \
slaxemulator@12419 17 startup-notification-dev libgpg-error-dev libxml2-dev libxcb-dev \
slaxemulator@12419 18 libidn-dev libtasn1-dev intltool expat-dev nss-dev \
slaxemulator@12419 19 ncursesw-dev xcb-util-dev gmp-dev"
slaxemulator@12419 20
pascal@24082 21 current_version()
pascal@24082 22 {
pascal@24082 23 wget -O - https://sourceforge.net/projects/$PACKAGE/files/Pidgin 2>/dev/null | \
pascal@24082 24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24082 25 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
pascal@24082 26 }
pascal@24082 27
pankso@41 28 # Rules to configure and make the package.
pankso@41 29 compile_rules()
pankso@41 30 {
pankso@41 31 cd $src
pankso@3634 32 touch pidgin.desktop
pankso@186 33 MSGFMT=/usr/bin/msgfmt
slaxemulator@12419 34
slaxemulator@12419 35 # Pidgin doesn't explicitly link to libm
pascal@17670 36 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
pankso@186 37 ./configure \
pankso@186 38 --prefix=/usr \
pankso@186 39 --infodir=/usr/share/info \
pankso@186 40 --mandir=/usr/share/man \
pankso@186 41 --disable-perl \
pankso@912 42 --disable-screensaver \
pankso@912 43 --disable-gtkspell \
pankso@912 44 --disable-gstreamer \
devl547@5548 45 --disable-gstreamer-interfaces \
pankso@912 46 --disable-meanwhile \
pankso@912 47 --disable-avahi \
pankso@912 48 --disable-nm \
pankso@912 49 --disable-tcl \
devl547@5548 50 --disable-tk \
pankso@912 51 --disable-dbus \
devl547@5548 52 --disable-farsight \
pankso@4076 53 --disable-vv \
devl547@5548 54 --disable-idn \
slaxemulator@6212 55 --disable-sm \
pascal@2522 56 $CONFIGURE_ARGS &&
slaxemulator@12419 57 make -j 4 &&
slaxemulator@12419 58 make install
pankso@41 59 }
pankso@41 60
pankso@41 61 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@41 62 genpkg_rules()
pankso@41 63 {
slaxemulator@12419 64 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
slaxemulator@12419 65 cp -a $install/usr/bin $fs/usr
slaxemulator@12419 66 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@12419 67 cp -a $install/usr/lib/pidgin $fs/usr/lib
slaxemulator@12419 68 cp -a $install/usr/lib/purple-2 $fs/usr/lib
pankso@41 69 rm $fs/usr/lib/pidgin/*.la
pankso@41 70 rm $fs/usr/lib/purple-2/*.la
slaxemulator@12419 71 cp -a $install/usr/share/purple $fs/usr/share
slaxemulator@12419 72 cp -a $install/usr/share/pixmaps/pidgin $fs/usr/share/pixmaps
slaxemulator@12419 73 cp -a $install/usr/share/icons/hicolor/24x24/apps/* $fs/usr/share/pixmaps
pankso@3634 74 # Cook wanted
pankso@3634 75 echo "Cook: pidgin-dev"
pankso@3634 76 echo "Cook: libpurple-dev"
pankso@41 77 }
pankso@41 78