wok-6.x annotate flex/receipt @ rev 24920

updated mp (5.2.10 -> 5.58)
author Hans-G?nter Theisgen
date Sun Apr 10 07:48:27 2022 +0100 (2022-04-10)
parents f445044dc215
children
rev   line source
pankso@34 1 # SliTaz package receipt.
pankso@34 2
pankso@34 3 PACKAGE="flex"
Hans-G?nter@20925 4 VERSION="2.6.4"
pankso@204 5 CATEGORY="development"
pankso@34 6 SHORT_DESC="Flex is a fast lexical analyser generator."
pankso@34 7 MAINTAINER="pankso@slitaz.org"
pascal@15022 8 LICENSE="BSD"
Hans-G?nter@20925 9 WEB_SITE="https://github.com/westes/flex"
Hans-G?nter@20925 10
pankso@34 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@20925 12 WGET_URL="https://github.com/westes/$PACKAGE/releases/download/v$VERSION/$TARBALL"
pankso@34 13
pankso@10042 14 DEPENDS="bison"
pankso@10042 15 BUILD_DEPENDS="bison"
Hans-G?nter@20925 16 HOST_ARCH="i486 arm"
pankso@10042 17
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
pankso@34 24 # Rules to configure and make the package.
pankso@34 25 compile_rules()
pankso@34 26 {
pascal@19088 27 case "$ARCH" in
pascal@19088 28 arm*)
pascal@19088 29 export ac_cv_func_malloc_0_nonnull=yes
pascal@19089 30 export ac_cv_func_realloc_0_nonnull=yes
pascal@19088 31 esac
Hans-G?nter@20925 32
pankso@10041 33 ./configure $CONFIGURE_ARGS &&
Hans-G?nter@20925 34 make -j 1 &&
Hans-G?nter@20925 35 make install
pankso@34 36 }
pankso@34 37
pankso@34 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@34 39 genpkg_rules()
pankso@34 40 {
pankso@2050 41 mkdir -p $fs/usr
pankso@13204 42 cp -a $install/usr/bin $fs/usr
pascal@67 43 ln -s flex $fs/usr/bin/lex
pankso@13204 44 cp -a $install/usr/lib $fs/usr
pankso@13204 45 cp -a $install/usr/include $fs/usr
Hans-G?nter@20925 46
Hans-G?nter@20925 47 # locales
Hans-G?nter@20925 48 mkdir -p $fs/usr/share/locale
Hans-G?nter@20925 49 LOCALES="da de es fr pt_BR ro ro zh_CN zh_TW"
Hans-G?nter@20925 50 for locale in $LOCALES
Hans-G?nter@20925 51 do
Hans-G?nter@20925 52 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
Hans-G?nter@20925 53 done
pankso@34 54 }