wok view flex/receipt @ rev 22042

gcc83-lib-base: do NOT provide gcc-lib-base
Currently BOTH gcc-lib-base and gcc83-lib-base are installed on my SliTaz system. So, with the current (and longstanding) tazpkg limitations I can't update just gcc-lib-base: tazpkg always updates gcc83-lib-base for me instead. Now I can't run Firefox, Vivaldi, Chrome, etc. I think because of gcc-lib-base, but I not sure 1bsolutely.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 22 12:55:54 2019 +0300 (2019-10-22)
parents 0c85455b2f3b
children 5ea0ce1cecc0
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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 case "$ARCH" in
22 arm*)
23 export ac_cv_func_malloc_0_nonnull=yes
24 export ac_cv_func_realloc_0_nonnull=yes
25 esac
27 ./configure $CONFIGURE_ARGS &&
28 make -j 1 &&
29 make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $install/usr/bin $fs/usr
37 ln -s flex $fs/usr/bin/lex
38 cp -a $install/usr/lib $fs/usr
39 cp -a $install/usr/include $fs/usr
41 # locales
42 mkdir -p $fs/usr/share/locale
43 LOCALES="da de es fr pt_BR ro ro zh_CN zh_TW"
44 for locale in $LOCALES
45 do
46 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
47 done
48 }