wok view gtkspell3/receipt @ rev 24403

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 08 18:20:23 2022 +0000 (2022-02-08)
parents c72d83acf68f
children e913bffbfca8
line source
1 # SliTaz package receipt.
3 PACKAGE="gtkspell3"
4 VERSION="3.0.8"
5 CATEGORY="text"
6 SHORT_DESC="On-the-fly spell checking for GtkTextView widgets."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://gtkspell.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/gtkspell/$TARBALL"
14 DEPENDS="enchant gtk+3"
15 BUILD_DEPENDS="enchant-dev gobject-introspection gtk+3-dev gtk-doc vala"
17 HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/gtkspell/files/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*/files/||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure $CONFIGURE_ARGS &&
31 make &&
32 make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 mkdir -p $fs/usr/share/locale
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 . $WOK/slitaz-i18n/stuff/locale-pack.conf
44 for i in $LOCALE_PACK
45 do
46 [ -d $install/usr/share/locale/$i ] &&
47 cp -a $install/usr/share/locale/$i $fs/usr/share/locale
48 done
49 }