wok-6.x view flex/receipt @ rev 24057
Up intel-microcode (20210216), lzsa (1.3.7), xrdp (0.9.16), xorgxrdp (0.2.16)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 14:31:15 2021 +0000 (2021-06-08) |
parents | f445044dc215 |
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 current_version()
19 {
20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 case "$ARCH" in
28 arm*)
29 export ac_cv_func_malloc_0_nonnull=yes
30 export ac_cv_func_realloc_0_nonnull=yes
31 esac
33 ./configure $CONFIGURE_ARGS &&
34 make -j 1 &&
35 make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 cp -a $install/usr/bin $fs/usr
43 ln -s flex $fs/usr/bin/lex
44 cp -a $install/usr/lib $fs/usr
45 cp -a $install/usr/include $fs/usr
47 # locales
48 mkdir -p $fs/usr/share/locale
49 LOCALES="da de es fr pt_BR ro ro zh_CN zh_TW"
50 for locale in $LOCALES
51 do
52 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
53 done
54 }