wok-6.x view fpc-bootstrap/receipt @ rev 22716
updated fceux (2.1.5 -> 2.2.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jan 22 15:29:51 2020 +0100 (2020-01-22) |
parents | e43333671f19 |
children | bfabe25c21ff |
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 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin $WOK/$PACKAGE/tmp
31 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
32 cp $SOURCES_REPOSITORY/$TARBALL $WOK/$PACKAGE/tmp
33 fi
34 mv $WOK/$PACKAGE/tmp/$TARBALL $WOK/$PACKAGE/tmp/$BOOTSTRAP.bz2
35 [ -f $WOK/$PACKAGE/tmp/$BOOTSTRAP ] && rm -f $WOK/$PACKAGE/tmp/$BOOTSTRAP
36 bunzip2 -d $WOK/$PACKAGE/tmp/$BOOTSTRAP.bz2
37 cp -a $WOK/$PACKAGE/tmp/$BOOTSTRAP $fs/usr/bin/${BOOTSTRAP#*linux-}
38 chmod +x $fs/usr/bin/${BOOTSTRAP#*linux-}
39 }