wok-next diff rust/receipt @ rev 20461

Respect "install" phase (src -> install). Cook will fail if install dir empty (and it's by design).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Mar 04 04:56:40 2018 +0200 (2018-03-04)
parents 6d2b71cbba60
children 1ff723a6455b
line diff
     1.1 --- a/rust/receipt	Tue Sep 19 02:54:15 2017 +0300
     1.2 +++ b/rust/receipt	Sun Mar 04 04:56:40 2018 +0200
     1.3 @@ -1,19 +1,25 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="rust"
     1.7 -VERSION="1.20.0"
     1.8 +VERSION="1.23.0"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="The Rust programming language"
    1.11  MAINTAINER="al.bobylev@gmail.com"
    1.12  LICENSE="MIT Apache BSD"
    1.13  WEB_SITE="https://www.rust-lang.org/"
    1.14 +HOST_ARCH="i486 x86_64"
    1.15  
    1.16 -TARBALL="rust-$VERSION-i686-unknown-linux-gnu.tar.gz"
    1.17 +TARBALL="rust-$VERSION-${ARCH/i486/i686}-unknown-linux-gnu.tar.gz"
    1.18  WGET_URL="https://static.rust-lang.org/dist/$TARBALL"
    1.19  
    1.20 -# Rules to configure and make the package.
    1.21 -compile_rules()
    1.22 -{
    1.23 +# Available targets we interest in: https://forge.rust-lang.org/platform-support.html
    1.24 +#   i686-unknown-linux-gnu       | 32-bit Linux
    1.25 +# x86_64-unknown-linux-gnu       | 64-bit Linux
    1.26 +#    arm-unknown-linux-gnueabi   | ARMv6 Linux
    1.27 +#    arm-unknown-linux-gnueabihf | ARMv6 Linux, hardfloat
    1.28 +#  armv7-unknown-linux-gnueabihf | ARMv7 Linux
    1.29 +
    1.30 +compile_rules() {
    1.31  	./install.sh \
    1.32  		--prefix=$install/usr \
    1.33  		--sysconfdir=$install/etc \
    1.34 @@ -21,8 +27,6 @@
    1.35  		--without=rust-docs
    1.36  }
    1.37  
    1.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.39 -genpkg_rules()
    1.40 -{
    1.41 +genpkg_rules() {
    1.42  	copy @std
    1.43  }