wok annotate gtkspell3/receipt @ rev 24427

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