diff --git a/pkg.info b/pkg.info index 5522d5b..0754e1b 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,7 @@ name: uutils-coreutils description: Cross-platform Rust rewrite of the GNU coreutils version: 0.0.30 +revision: 2 url: https://github.com/uutils/coreutils license: MIT architecture: any diff --git a/source-files/add_stty_to_makefile.patch b/source-files/add_stty_to_makefile.patch new file mode 100644 index 0000000..972b41e --- /dev/null +++ b/source-files/add_stty_to_makefile.patch @@ -0,0 +1,14 @@ +diff --git a/GNUmakefile b/GNUmakefile +index 8d7179b5e..84947aa4a 100644 +--- a/GNUmakefile ++++ b/GNUmakefile +@@ -173,7 +173,8 @@ UNIX_PROGS := \ + unlink \ + uptime \ + users \ +- who ++ who \ ++ stty + + SELINUX_PROGS := \ + chcon \ diff --git a/source.sh b/source.sh index 0f126a1..19dae5d 100644 --- a/source.sh +++ b/source.sh @@ -17,6 +17,9 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { + # Apply patch to add stty to makefile + patch GNUmakefile < "$BPM_WORKDIR"/add_stty_to_makefile.patch + make PREFIX=/usr MANDIR=/share/man/man1 PROFILE=release SKIP_UTILS="$SKIPPED_UTILS" }