-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Expand file tree
/
Copy pathtemplate
More file actions
89 lines (83 loc) · 3.09 KB
/
Copy pathtemplate
File metadata and controls
89 lines (83 loc) · 3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Template file for 'uutils-coreutils'
pkgname=uutils-coreutils
version=0.9.0
revision=1
build_style=gnu-makefile
build_helper="rust"
make_build_args="MULTICALL=y PROFILE=release"
make_install_args="MULTICALL=y PROFILE=release"
hostmakedepends="cargo pkg-config"
makedepends="oniguruma-devel rust-std"
short_desc="Cross-platform Rust rewrite of the GNU coreutils"
maintainer="Nafis <mnabid.25@outlook.com>"
license="MIT"
homepage="https://github.com/uutils/coreutils"
distfiles="https://github.com/uutils/coreutils/archive/refs/tags/${version}.tar.gz"
checksum=dafe0126ee4ed55c7cd60c6b559f43724a74751deed3c1b078f4f510311acab2
alternatives="
hostname:hostname:/usr/bin/hostname-coreutils
hostname:hostname.1:/usr/share/man/man1/hostname-coreutils.1"
conflicts="coreutils"
replaces="coreutils>=0"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" oniguruma-devel"
fi
make_check=no # tests fail in chroot
# Failed tests:
# test_chgrp::basic_succeeds
# test_chgrp::test_big_p
# test_chgrp::test_from_option
# test_chgrp::test_from_with_invalid_group
# test_chgrp::test_from_with_reference
# test_chgrp::test_numeric_group_formats
# test_chgrp::test_reference
# test_chgrp::test_subdir_permission_denied
# test_chgrp::test_traverse_symlinks
# test_chown::test_big_p
# test_cp::test_cp_r_symlink
# test_df::test_file_column_width_if_filename_contains_unicode_chars
# test_df::test_nonexistent_file
# test_df::test_output_file_specific_files
# test_df::test_output_mp_repeat
# test_df::test_output_option_without_equals_sign
# test_df::test_total_label_in_correct_column
# test_df::test_type_option_with_file
# test_groups::test_groups
# test_hostname::test_hostname_ip
# test_id::test_id_default_format
# test_id::test_id_ignore
# test_id::test_id_name
# test_id::test_id_no_specified_user
# test_id::test_id_no_specified_user_posixly
# test_id::test_id_real
# test_id::test_id_zero
# test_ls::test_ls_allocation_size
# test_stat::test_mount_point_basic
# test_stat::test_mount_point_combined_with_other_specifiers
# test_stat::test_multi_files
# test_stat::test_normal_format
# test_stat::test_percent_escaping
# test_stat::test_printf
# test_stat::test_symlinks
# test_stdbuf::test_libstdbuf_preload
# test_stdbuf::test_stdbuf_line_buffered_stdout
# test_stdbuf::test_stdbuf_no_fork_regression
# test_stdbuf::test_stdbuf_non_utf8_paths
# test_stdbuf::test_stdbuf_trailing_var_arg
# test_stdbuf::test_stdbuf_unbuffered_stdout
# test_test::test_file_not_owned_by_egid
# test_test::test_file_not_owned_by_euid
# test_touch::test_touch_system_fails
# test_who::test_boot
export SKIP_UTILS="more kill uptime" # conflict with util-linux and procps-ng
pre_build() {
# Remove cargo config target overrides
rm .cargo/config.toml
# Prevent cross-sysroot poisoning when building host tools for documentation
vsed -i 's/@unset CARGO_BUILD_TARGET/& \&\& unset RUSTFLAGS CFLAGS CXXFLAGS LDFLAGS CPPFLAGS/' GNUmakefile
}
post_install() {
mv ${DESTDIR}/usr/bin/hostname ${DESTDIR}/usr/bin/hostname-coreutils
mv ${DESTDIR}/usr/share/man/man1/hostname.1 ${DESTDIR}/usr/share/man/man1/hostname-coreutils.1
vlicense LICENSE
}