wok-next view fpc-bootstrap/receipt @ rev 20459
Combine receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 13:45:43 2018 +0200 (2018-03-02) |
parents | e43333671f19 |
children | 2f03cb67a994 |
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="http://freepascal.org/"
11 BOOTSTRAP="i386-linux-ppc386"
12 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/bootstrap/$BOOTSTRAP.bz2"
14 # Handle cross compilation.
15 case "$ARCH" in
16 arm*)
17 BOOTSTRAP="arm-linux-ppcarm"
18 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/bootstrap/$BOOTSTRAP.bz2"
19 ;;
20 x86_64)
21 BOOTSTRAP="x86_64-linux-ppcx64"
22 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/bootstrap/$BOOTSTRAP.bz2"
23 ;;
24 esac
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/bin $WOK/$PACKAGE/tmp
30 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
31 cp $SOURCES_REPOSITORY/$TARBALL $WOK/$PACKAGE/tmp
32 fi
33 mv $WOK/$PACKAGE/tmp/$TARBALL $WOK/$PACKAGE/tmp/$BOOTSTRAP.bz2
34 [ -f $WOK/$PACKAGE/tmp/$BOOTSTRAP ] && rm -f $WOK/$PACKAGE/tmp/$BOOTSTRAP
35 bunzip2 -d $WOK/$PACKAGE/tmp/$BOOTSTRAP.bz2
36 cp -a $WOK/$PACKAGE/tmp/$BOOTSTRAP $fs/usr/bin/${BOOTSTRAP#*linux-}
37 chmod +x $fs/usr/bin/${BOOTSTRAP#*linux-}
38 }