wok-next diff fpc-bootstrap/receipt @ rev 20559
rrdtool: syntax error
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 07 17:41:33 2018 +0300 (2018-04-07) |
parents | c4e53a39395a |
children | a3c581bf52b8 |
line diff
1.1 --- a/fpc-bootstrap/receipt Fri Mar 02 12:12:14 2018 +0200 1.2 +++ b/fpc-bootstrap/receipt Sat Apr 07 17:41:33 2018 +0300 1.3 @@ -1,38 +1,26 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="fpc-bootstrap" 1.8 -VERSION="2.6.2" 1.9 +VERSION="2.6.2" # last 2.x.x version is 2.6.4, and it lacks arm and x86_64 archs 1.10 CATEGORY="development" 1.11 -SHORT_DESC="bootstrap to compile fpc." 1.12 +SHORT_DESC="Bootstrap to compile fpc" 1.13 MAINTAINER="slaxemulator@gmail.com" 1.14 LICENSE="GPL2 LGPL2.1" 1.15 +WEB_SITE="http://freepascal.org/" 1.16 + 1.17 +case "$ARCH" in 1.18 + arm*) BOOTSTRAP="arm-linux-ppcarm";; 1.19 + x86_64) BOOTSTRAP="x86_64-linux-ppcx64";; 1.20 + i?86) BOOTSTRAP="i386-linux-ppc386";; 1.21 +esac 1.22 TARBALL="$PACKAGE-$ARCH-$VERSION.bz2" 1.23 -WEB_SITE="http://freepascal.org/" 1.24 -BOOTSTRAP="i386-linux-ppc386" 1.25 WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/bootstrap/$BOOTSTRAP.bz2" 1.26 1.27 -# Handle cross compilation. 1.28 -case "$ARCH" in 1.29 - arm*) 1.30 - BOOTSTRAP="arm-linux-ppcarm" 1.31 - WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/bootstrap/$BOOTSTRAP.bz2" 1.32 - ;; 1.33 - x86_64) 1.34 - BOOTSTRAP="x86_64-linux-ppcx64" 1.35 - WGET_URL="ftp://ftp.freepascal.org/pub/fpc/dist/$VERSION/bootstrap/$BOOTSTRAP.bz2" 1.36 - ;; 1.37 -esac 1.38 +compile_rules() { 1.39 + [ -f $src/$TARBALL ] && bunzip2 -d $src/$TARBALL 1.40 + install -Dm 755 $src/${TARBALL%.bz2} $install/usr/bin/${BOOTSTRAP#*linux-} 1.41 +} 1.42 1.43 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.44 -genpkg_rules() 1.45 -{ 1.46 - mkdir -p $fs/usr/bin $WOK/$PACKAGE/tmp 1.47 - if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then 1.48 - cp $SOURCES_REPOSITORY/$TARBALL $WOK/$PACKAGE/tmp 1.49 - fi 1.50 - mv $WOK/$PACKAGE/tmp/$TARBALL $WOK/$PACKAGE/tmp/$BOOTSTRAP.bz2 1.51 - [ -f $WOK/$PACKAGE/tmp/$BOOTSTRAP ] && rm -f $WOK/$PACKAGE/tmp/$BOOTSTRAP 1.52 - bunzip2 -d $WOK/$PACKAGE/tmp/$BOOTSTRAP.bz2 1.53 - cp -a $WOK/$PACKAGE/tmp/$BOOTSTRAP $fs/usr/bin/${BOOTSTRAP#*linux-} 1.54 - chmod +x $fs/usr/bin/${BOOTSTRAP#*linux-} 1.55 +genpkg_rules() { 1.56 + copy @std 1.57 }