wok annotate enchant/receipt @ rev 24819

libnsl: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 23 09:20:46 2022 +0000 (2022-03-23)
parents 7e16db4fdc4a
children f2b4a9eb8bdd
rev   line source
pankso@571 1 # SliTaz package receipt.
pankso@571 2
pankso@571 3 PACKAGE="enchant"
Hans-G?nter@22790 4 VERSION="1.6.0"
pankso@571 5 CATEGORY="x-window"
pankso@571 6 SHORT_DESC="Enchant spell checking library."
pankso@571 7 MAINTAINER="pankso@slitaz.org"
pascal@15202 8 LICENSE="LGPL2.1"
Hans-G?nter@22790 9 SUGGESTED="aspell"
Hans-G?nter@22790 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22790 11 WEB_SITE="http://www.abisource.com/projects/enchant/"
Hans-G?nter@22790 12 WGET_URL="http://www.abisource.com/downloads/enchant/$VERSION/$TARBALL"
Hans-G?nter@22790 13 TAGS="spell check"
Hans-G?nter@22790 14 HOST_ARCH="i486 arm"
Hans-G?nter@22700 15
Hans-G?nter@22790 16 DEPENDS="dbus dbus-glib glib gcc-lib-base"
Hans-G?nter@22790 17 BUILD_DEPENDS="pkg-config glib glib-dev aspell-dev"
pankso@571 18
pascal@24069 19 current_version()
pascal@24069 20 {
pascal@24069 21 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24069 22 sed '/released/!d;s|.*Enchant ||;s| released.*||;q'
pascal@24069 23 }
pascal@24069 24
pankso@571 25 # Rules to configure and make the package.
pankso@571 26 compile_rules()
pankso@571 27 {
Hans-G?nter@22790 28 ./configure \
pascal@1439 29 $CONFIGURE_ARGS &&
Hans-G?nter@22790 30 make && make install
pankso@571 31 }
pankso@571 32
pankso@571 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@571 34 genpkg_rules()
pankso@571 35 {
Hans-G?nter@22790 36 mkdir -p $fs/usr/lib $fs/usr/share
Hans-G?nter@22790 37 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22790 38 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@22790 39 cp -a $install/usr/lib/enchant $fs/usr/lib
Hans-G?nter@22790 40 rm $fs/usr/lib/enchant/*.*a
Hans-G?nter@22790 41 cp -a $install/usr/share/enchant $fs/usr/share
Hans-G?nter@22790 42 }
Hans-G?nter@22700 43