wok annotate fpc-bootstrap/receipt @ rev 24749

cairo: modified lookup-symbol.c for binutils-2.37
author Hans-G?nter Theisgen
date Wed Mar 16 17:06:35 2022 +0100 (2022-03-16)
parents 8f37db468deb
children
rev   line source
slaxemulator@9411 1 # SliTaz package receipt.
slaxemulator@9411 2
slaxemulator@9411 3 PACKAGE="fpc-bootstrap"
pascal@16226 4 VERSION="2.6.2"
slaxemulator@9411 5 CATEGORY="development"
slaxemulator@9411 6 SHORT_DESC="bootstrap to compile fpc."
slaxemulator@9411 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15604 8 LICENSE="GPL2 LGPL2.1"
pascal@16229 9 TARBALL="$PACKAGE-$ARCH-$VERSION.bz2"
pascal@20669 10 WEB_SITE="https://freepascal.org/"
pascal@16229 11 BOOTSTRAP="i386-linux-ppc386"
pascal@16229 12 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/bootstrap/$BOOTSTRAP.bz2"
pascal@16229 13 #HOST_ARCH="i486 x86_64 arm"
pascal@16229 14
pascal@16229 15 # Handle cross compilation.
pascal@16229 16 case "$ARCH" in
pascal@16229 17 arm*)
pascal@16229 18 BOOTSTRAP="arm-linux-ppcarm"
pascal@16229 19 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/bootstrap/$BOOTSTRAP.bz2"
pascal@16229 20 ;;
pascal@16229 21 x86_64)
pascal@16229 22 BOOTSTRAP="x86_64-linux-ppcx64"
pascal@16229 23 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/bootstrap/$BOOTSTRAP.bz2"
pascal@16229 24 ;;
pascal@16229 25 esac
slaxemulator@9411 26
pascal@24439 27 # What is the latest version available today?
pascal@24439 28 current_version()
pascal@24439 29 {
pascal@24626 30 wget -O - 'https://gitlab.com/freepascal.org/fpc/source/-/tags?sort=updated_desc' 2>/dev/null | \
pascal@24626 31 sed '/source-/!d;/tar.gz/!d;/quot;/d;/_rc[0-9]/d;/macos/d;s|.*/source-||;s|.*release.||;s|.tar.*||;/^[0-9]/!d;s|_|.|g' | sort -Vr | sed q
pascal@24439 32 }
pascal@24439 33
slaxemulator@9411 34 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9411 35 genpkg_rules()
slaxemulator@9411 36 {
slaxemulator@9411 37 mkdir -p $fs/usr/bin $WOK/$PACKAGE/tmp
slaxemulator@9411 38 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
slaxemulator@9411 39 cp $SOURCES_REPOSITORY/$TARBALL $WOK/$PACKAGE/tmp
slaxemulator@9411 40 fi
pascal@16229 41 mv $WOK/$PACKAGE/tmp/$TARBALL $WOK/$PACKAGE/tmp/$BOOTSTRAP.bz2
pascal@16231 42 [ -f $WOK/$PACKAGE/tmp/$BOOTSTRAP ] && rm -f $WOK/$PACKAGE/tmp/$BOOTSTRAP
pascal@16230 43 bunzip2 -d $WOK/$PACKAGE/tmp/$BOOTSTRAP.bz2
pascal@16229 44 cp -a $WOK/$PACKAGE/tmp/$BOOTSTRAP $fs/usr/bin/${BOOTSTRAP#*linux-}
pascal@16229 45 chmod +x $fs/usr/bin/${BOOTSTRAP#*linux-}
slaxemulator@9411 46 }