wok view fpc-bootstrap/receipt @ rev 17613
Up: expat 2.1.0
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Thu Feb 12 19:30:27 2015 +0000 (2015-02-12) |
parents | 3a0f4ab7b0ad |
children | a78610b2eb47 |
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"
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 }