wok view flex/receipt @ rev 25599

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 13:38:12 2023 +0000 (9 months ago)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="flex"
4 VERSION="2.6.4"
5 CATEGORY="development"
6 SHORT_DESC="Flex is a fast lexical analyser generator."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://github.com/westes/flex"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/westes/$PACKAGE/releases/download/v$VERSION/$TARBALL"
14 DEPENDS="bison"
15 BUILD_DEPENDS="bison"
16 HOST_ARCH="i486 arm"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 case "$ARCH" in
29 arm*)
30 export ac_cv_func_malloc_0_nonnull=yes
31 export ac_cv_func_realloc_0_nonnull=yes
32 esac
34 ./configure $CONFIGURE_ARGS &&
35 make -j 1 &&
36 make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/bin $fs/usr
44 ln -s flex $fs/usr/bin/lex
45 cp -a $install/usr/lib $fs/usr
46 cp -a $install/usr/include $fs/usr
48 # locales
49 mkdir -p $fs/usr/share/locale
50 LOCALES="da de es fr pt_BR ro ro zh_CN zh_TW"
51 for locale in $LOCALES
52 do
53 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
54 done
55 }