wok view rust/receipt @ rev 25503

f3: include extra programs
author Hans-G?nter Theisgen
date Fri Jan 27 10:37:43 2023 +0100 (15 months ago)
parents cd6fc250348b
children 6acd28d149b8
line source
1 # SliTaz package receipt.
3 PACKAGE="rust"
4 VERSION="1.62.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 }