wok-next view fpc-bootstrap/receipt @ rev 16427

Add svkbd (realy nice and so small virtual keyboard) and up surf from suckless
author Christophe Lincoln <pankso@slitaz.org>
date Fri Apr 18 10:51:46 2014 +0200 (2014-04-18)
parents 3a0f4ab7b0ad
children c4e53a39395a
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 }