wok-next view 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
line source
1 # SliTaz package receipt v2.
3 PACKAGE="rust"
4 VERSION="1.17.0"
5 CATEGORY="development"
6 SHORT_DESC="The Rust programming language"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MIT Apache BSD"
9 WEB_SITE="https://www.rust-lang.org/"
11 TARBALL="rust-$VERSION-i686-unknown-linux-gnu.tar.gz"
12 WGET_URL="https://static.rust-lang.org/dist/$TARBALL"
14 SIBLINGS="rust-doc rust-cargo"
15 SPLIT="rust-cargo rust-doc"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./install.sh \
21 --prefix=$install/usr \
22 --mandir=$install/usr/share/man
24 # Fix /etc path (v.1.17.0)
25 mv $install/usr/etc $install
27 # Fix permissions (v.1.17.0)
28 find $install/usr/share/doc -type f -exec chmod a-x '{}' \;
29 find $install -name '*.so*' -exec chmod a+x '{}' \;
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 case $PACKAGE in
36 rust)
37 copy rust-gdb rust-lldb rustc rustdoc /usr/lib/
38 ;;
39 rust-cargo)
40 copy /usr/bin/cargo
41 CAT="development|package manager"
42 DEPENDS="rust"
43 ;;
44 rust-doc)
45 copy /usr/share/doc/
46 CAT="doc|documentation"
47 ;;
48 esac
49 }