wok-6.x annotate fpc-bootstrap/receipt @ rev 17675
nmon: keep source
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 18 11:21:08 2015 +0100 (2015-02-18) |
parents | 3a0f4ab7b0ad |
children | a78610b2eb47 |
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" |
slaxemulator@9411 | 10 WEB_SITE="http://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 |
slaxemulator@9411 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9411 | 28 genpkg_rules() |
slaxemulator@9411 | 29 { |
slaxemulator@9411 | 30 mkdir -p $fs/usr/bin $WOK/$PACKAGE/tmp |
slaxemulator@9411 | 31 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then |
slaxemulator@9411 | 32 cp $SOURCES_REPOSITORY/$TARBALL $WOK/$PACKAGE/tmp |
slaxemulator@9411 | 33 fi |
pascal@16229 | 34 mv $WOK/$PACKAGE/tmp/$TARBALL $WOK/$PACKAGE/tmp/$BOOTSTRAP.bz2 |
pascal@16231 | 35 [ -f $WOK/$PACKAGE/tmp/$BOOTSTRAP ] && rm -f $WOK/$PACKAGE/tmp/$BOOTSTRAP |
pascal@16230 | 36 bunzip2 -d $WOK/$PACKAGE/tmp/$BOOTSTRAP.bz2 |
pascal@16229 | 37 cp -a $WOK/$PACKAGE/tmp/$BOOTSTRAP $fs/usr/bin/${BOOTSTRAP#*linux-} |
pascal@16229 | 38 chmod +x $fs/usr/bin/${BOOTSTRAP#*linux-} |
slaxemulator@9411 | 39 } |