wok-current view enchant2/receipt @ rev 24353
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 03 12:55:23 2022 +0000 (2022-02-03) |
parents | 3b402e9083e1 |
children | fd8dfbdbc24d |
line source
1 # SliTaz package receipt.
3 PACKAGE="enchant2"
4 VERSION="2.2.7"
5 CATEGORY="x-window"
6 TAGS="spell check"
7 SHORT_DESC="Enchant spell checking library."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="LGPL2.1"
10 WEB_SITE="https://www.abisource.com/projects/enchant/"
12 SOURCE="enchant"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://github.com/AbiWord/$SOURCE/releases/download/v$VERSION/$TARBALL"
16 SUGGESTED="aspell"
17 DEPENDS="dbus dbus-glib gcc83-lib-base glib"
18 BUILD_DEPENDS="aspell-dev gcc83 glib-dev pkg-config"
20 HOST_ARCH="i486 arm"
22 current_version()
23 {
24 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
25 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 CC=gcc-83 \
33 CXX=g++-83 \
34 $CONFIGURE_ARGS &&
35 make &&
36 make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
43 mkdir -p $fs/usr/share
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib/*.so* $fs/usr/lib
47 cp -a $install/usr/lib/enchant-2 $fs/usr/lib
48 rm $fs/usr/lib/enchant-2/*.*a
49 cp -a $install/usr/share/enchant $fs/usr/share
50 }