wok view verbiste/receipt @ rev 24462
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 16 21:07:01 2022 +0000 (2022-02-16) |
parents | 85e0aa42e26a |
children | 2b88f36eab80 |
line source
1 # SliTaz package receipt.
3 PACKAGE="verbiste"
4 VERSION="0.1.47"
5 CATEGORY="office"
6 SHORT_DESC="A French conjugation system."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://perso.b2b2c.ca/~sarrazip/dev/verbiste.html"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://perso.b2b2c.ca/~sarrazip/dev/$TARBALL"
14 DEPENDS="gtk+ libxml2"
15 BUILD_DEPENDS="gtk+-dev libxml2-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --with-gnome-app=no \
29 $CONFIGURE_ARGS &&
30 make &&
31 make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
38 mkdir -p $fs/usr/share/pixmaps
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 cp -a $install/usr/share/verbiste-* $fs/usr/share
43 rm $fs/usr/share/verbiste-*/COPYING
44 cp $src/src/gtk/verbiste*.png $fs/usr/share/pixmaps
45 }