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