wok-next annotate rust/receipt @ rev 19751

Up perl-xml-parser: we have perl-dev now...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jun 08 15:34:29 2017 +0300 (2017-06-08)
parents 91a99d774072
children 38cf0c75fa4c
rev   line source
al@19741 1 # SliTaz package receipt v2.
al@19472 2
al@19472 3 PACKAGE="rust"
al@19741 4 VERSION="1.17.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@19620 10
al@19472 11 TARBALL="rust-$VERSION-i686-unknown-linux-gnu.tar.gz"
al@19472 12 WGET_URL="https://static.rust-lang.org/dist/$TARBALL"
al@19472 13
al@19472 14 SIBLINGS="rust-doc rust-cargo"
al@19620 15 SPLIT="rust-cargo rust-doc"
al@19472 16
al@19472 17 # Rules to configure and make the package.
al@19472 18 compile_rules()
al@19472 19 {
al@19472 20 ./install.sh \
al@19472 21 --prefix=$install/usr \
al@19472 22 --mandir=$install/usr/share/man
al@19741 23
al@19741 24 # Fix /etc path (v.1.17.0)
al@19741 25 mv $install/usr/etc $install
al@19741 26
al@19741 27 # Fix permissions (v.1.17.0)
al@19741 28 find $install/usr/share/doc -type f -exec chmod a-x '{}' \;
al@19741 29 find $install -name '*.so*' -exec chmod a+x '{}' \;
al@19472 30 }
al@19472 31
al@19472 32 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19472 33 genpkg_rules()
al@19472 34 {
al@19741 35 case $PACKAGE in
al@19741 36 rust)
al@19741 37 copy rust-gdb rust-lldb rustc rustdoc /usr/lib/
al@19741 38 ;;
al@19741 39 rust-cargo)
al@19741 40 copy /usr/bin/cargo
al@19741 41 CAT="development|package manager"
al@19741 42 DEPENDS="rust"
al@19741 43 ;;
al@19741 44 rust-doc)
al@19741 45 copy /usr/share/doc/
al@19741 46 CAT="doc|documentation"
al@19741 47 ;;
al@19741 48 esac
al@19472 49 }