wok annotate llvm/receipt @ rev 25352

created recipe for tesseract-ocr-data
author Hans-G?nter Theisgen
date Tue Jul 26 14:01:02 2022 +0100 (2022-07-26)
parents bcf7d6192b2d
children 73f36875e5a7
rev   line source
pascal@13784 1 # SliTaz package receipt.
pascal@13784 2
pascal@13784 3 PACKAGE="llvm"
pascal@18353 4 VERSION="3.2"
pascal@13784 5 CATEGORY="development"
pascal@13784 6 SHORT_DESC="Modular compiler toolchain collection."
pascal@13784 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15379 8 LICENSE="MIT"
pascal@13784 9 WEB_SITE="http://llvm.org/"
pascal@18353 10 TARBALL="$PACKAGE-$VERSION.src.tar.gz"
pascal@13785 11 WGET_URL="${WEB_SITE}releases/$VERSION/$TARBALL"
pascal@13784 12
pascal@18353 13 DEPENDS="libffi gcc-lib-base"
pascal@18353 14 BUILD_DEPENDS="libffi-dev libffi perl gcc"
pascal@13784 15
pascal@24425 16 # What is the latest version available today?
pascal@24425 17 current_version()
pascal@24425 18 {
pascal@24425 19 wget -O - https://github.com/llvm/llvm-project/releases 2>/dev/null | \
pascal@24425 20 sed '/-rc/d;/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
pascal@24425 21 }
pascal@24425 22
pascal@13784 23 # Rules to configure and make the package.
pascal@13784 24 compile_rules()
pascal@13784 25 {
pascal@18353 26 ./configure CC=gcc CXX=g++ \
pascal@17846 27 --prefix=/usr --sysconfdir=/etc \
pascal@13784 28 --enable-libffi \
pascal@13784 29 --enable-optimized \
pascal@13784 30 --enable-shared \
pascal@13784 31 --enable-targets=all \
pascal@13784 32 --disable-assertions \
pascal@13784 33 --disable-debug-runtime \
pascal@13784 34 --disable-expensive-checks \
pascal@13784 35 $CONFIGURE_ARGS &&
pascal@13784 36 make && make DESTDIR=$DESTDIR install
pascal@13784 37 }
pascal@13784 38
pascal@13784 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13784 40 genpkg_rules()
pascal@13784 41 {
pascal@13784 42 mkdir -p $fs/usr
pascal@13784 43 cp -a $install/usr/bin $fs/usr
pascal@13784 44 cp -a $install/usr/lib $fs/usr
pascal@13784 45 cp -a $install/usr/include $fs/usr
pascal@13784 46 }