wok-current view ayttm/receipt @ rev 24340

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 31 11:41:46 2022 +0000 (2022-01-31)
parents 736b965f54dc
children 7dd01dedad38
line source
1 # SliTaz package receipt.
3 PACKAGE="ayttm"
4 VERSION="0.6.3"
5 CATEGORY="network"
6 SHORT_DESC="Universal instant messenger client"
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://ayttm.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="audiofile-dev enchant-dev flex gtk+-dev libtool
15 openssl-dev xorg-libXpm-dev xcb-util-dev zlib-dev"
16 DEPENDS="aspell audiofile enchant gtk+ openssl xcb-util xorg-libXpm zlib"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/ayttm/files/ayttm/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;/tar/!d;s|.*ayttm-||;s|.tar.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # remove -lfl
30 sed -i 's/LEXLIB=.*/LEXLIB=/' configure
32 ./configure \
33 --prefix=/usr \
34 --infodir=/usr/share/info \
35 --mandir=/usr/share/man \
36 --disable-webcam \
37 --disable-esd \
38 --disable-arts \
39 --enable-lj \
40 $CONFIGURE_ARGS &&
41 make &&
42 make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr
49 mkdir -p $fs/etc
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/lib $fs/usr
53 cp -a $install/usr/share $fs/usr
54 cp $install/usr/etc/ayttmrc $fs/etc/ayttmrc
55 }