wok-current view fpc-bootstrap/receipt @ rev 24472
updated dd_rescue (1.99.8 -> 1.99.11)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 17 15:46:03 2022 +0100 (2022-02-17) |
parents | a78610b2eb47 |
children | 8f37db468deb |
line source
1 # SliTaz package receipt.
3 PACKAGE="fpc-bootstrap"
4 VERSION="2.6.2"
5 CATEGORY="development"
6 SHORT_DESC="bootstrap to compile fpc."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2 LGPL2.1"
9 TARBALL="$PACKAGE-$ARCH-$VERSION.bz2"
10 WEB_SITE="https://freepascal.org/"
11 BOOTSTRAP="i386-linux-ppc386"
12 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/bootstrap/$BOOTSTRAP.bz2"
13 #HOST_ARCH="i486 x86_64 arm"
15 # Handle cross compilation.
16 case "$ARCH" in
17 arm*)
18 BOOTSTRAP="arm-linux-ppcarm"
19 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/bootstrap/$BOOTSTRAP.bz2"
20 ;;
21 x86_64)
22 BOOTSTRAP="x86_64-linux-ppcx64"
23 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/bootstrap/$BOOTSTRAP.bz2"
24 ;;
25 esac
27 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - https://gitlab.com/freepascal.org/fpc/source/-/tags 2>/dev/null | \
31 sed '/-\/tags\/[a-z_]*[0-9]/!d;/_rc/d;s|.*tags/[a-z_]*||;s|".*||;s|_|.|g;q'
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin $WOK/$PACKAGE/tmp
38 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
39 cp $SOURCES_REPOSITORY/$TARBALL $WOK/$PACKAGE/tmp
40 fi
41 mv $WOK/$PACKAGE/tmp/$TARBALL $WOK/$PACKAGE/tmp/$BOOTSTRAP.bz2
42 [ -f $WOK/$PACKAGE/tmp/$BOOTSTRAP ] && rm -f $WOK/$PACKAGE/tmp/$BOOTSTRAP
43 bunzip2 -d $WOK/$PACKAGE/tmp/$BOOTSTRAP.bz2
44 cp -a $WOK/$PACKAGE/tmp/$BOOTSTRAP $fs/usr/bin/${BOOTSTRAP#*linux-}
45 chmod +x $fs/usr/bin/${BOOTSTRAP#*linux-}
46 }