wok-next annotate 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
rev   line source
al@19741 1 # SliTaz package receipt v2.
al@19472 2
al@19472 3 PACKAGE="rust"
al@20443 4 VERSION="1.23.0"
al@19472 5 CATEGORY="development"
al@19472 6 SHORT_DESC="The Rust programming language"
al@19472 7 MAINTAINER="al.bobylev@gmail.com"
al@19472 8 LICENSE="MIT Apache BSD"
al@19472 9 WEB_SITE="https://www.rust-lang.org/"
al@20443 10 HOST_ARCH="i486 x86_64"
al@19620 11
al@20443 12 TARBALL="rust-$VERSION-${ARCH/i486/i686}-unknown-linux-gnu.tar.gz"
al@19472 13 WGET_URL="https://static.rust-lang.org/dist/$TARBALL"
al@19472 14
al@20443 15 # Available targets we interest in: https://forge.rust-lang.org/platform-support.html
al@20443 16 # i686-unknown-linux-gnu | 32-bit Linux
al@20443 17 # x86_64-unknown-linux-gnu | 64-bit Linux
al@20443 18 # arm-unknown-linux-gnueabi | ARMv6 Linux
al@20443 19 # arm-unknown-linux-gnueabihf | ARMv6 Linux, hardfloat
al@20443 20 # armv7-unknown-linux-gnueabihf | ARMv7 Linux
al@20443 21
al@20443 22 compile_rules() {
al@19472 23 ./install.sh \
al@19472 24 --prefix=$install/usr \
al@19835 25 --sysconfdir=$install/etc \
al@19835 26 --mandir=$install/usr/share/man \
al@19835 27 --without=rust-docs
al@19472 28 }
al@19472 29
al@20443 30 genpkg_rules() {
al@19835 31 copy @std
al@19472 32 }