wok view emesene/receipt @ rev 24419

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 11 11:14:46 2022 +0000 (2022-02-11)
parents e3f377fbc5f0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="emesene"
4 VERSION="1.6"
5 CATEGORY="network"
6 SHORT_DESC="Instant messaging client for Windows Live Messenger (tm) network."
7 MAINTAINER="rocky@slitaz.org"
8 LICENSE="GPL2 LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/emesene/emesene"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 TAGS="im instant-messaging instant-messenger"
14 DEPENDS="python pygtk pycairo python-pysqlite gst-python"
15 BUILD_DEPENDS="python-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 while read file; do
29 [ -f done.$file ] && continue
30 echo "Apply $file..."
31 patch -p1 < $stuff/$file || return 1
32 touch done.$file
33 done <<EOT
34 slitaz-openbox.patch
35 EOT
36 python setup.py build_ext -i || return 1
37 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/bin \
44 $fs/usr/share/emesene \
45 $fs/usr/share/pixmaps \
46 $fs/usr/share/applications
48 cp stuff/emesene $fs/usr/bin
49 cp -a $src/* $fs/usr/share/emesene
50 cp $fs/usr/share/emesene/misc/emesene.png $fs/usr/share/pixmaps
51 cp $fs/usr/share/emesene/misc/emesene.desktop $fs/usr/share/applications
53 rm -rf $fs/usr/share/emesene/misc
54 rm -rf $fs/usr/share/emesene/po
55 rm -rf $fs/usr/share/emesene/libmimic
56 rm -rf $fs/usr/share/emesene/build
57 }