wok-current view flex/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 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 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/lib
42 cp -a $install/usr/bin $fs/usr
43 ln -s flex $fs/usr/bin/lex
44 cp -a $install/usr/lib/*.a $fs/usr/lib
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
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 }