wok view rust/receipt @ rev 24783
Up apache-ant (1.10.12)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 20 12:11:06 2022 +0000 (2022-03-20) |
parents | 848e2021d813 |
children | cd6fc250348b |
line source
1 # SliTaz package receipt.
3 PACKAGE="rust"
4 VERSION="1.47.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-cargo"
15 BUILD_DEPENDS="cacerts"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed '/ersion/!d;s|.*ion ||;s|<.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./install.sh \
28 --prefix=$install/usr \
29 --sysconfdir=$install/etc \
30 --mandir=$install/usr/share/man \
31 --without=rust-docs
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cook_copy_files \
38 rust-gdb \
39 rustc \
40 rustdoc \
41 rustc.1* \
42 rustdoc.1*
44 mkdir -p $fs/usr
46 cp -a $install/usr/lib $fs/usr
47 find $fs/usr/lib -type f -name '*.so' -exec chmod a+x \{\} \;
48 }