wok view flex/receipt @ rev 25509
sgmixer: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 12 13:14:45 2023 +0000 (21 months ago) |
parents | f445044dc215 |
children | 20ad21d5532c |
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 }