From 64e14c0882978a68609edd3941ee8b3a4a970e48 Mon Sep 17 00:00:00 2001 From: ABevier Date: Mon, 6 Mar 2023 18:54:43 -0500 Subject: [PATCH] +watch (#465) * add watch * clean up yml * try to fix deps * ncurses dep * just test it differently * add comment --- .../gitlab.com/procps-ng/watch/package.yml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 projects/gitlab.com/procps-ng/watch/package.yml diff --git a/projects/gitlab.com/procps-ng/watch/package.yml b/projects/gitlab.com/procps-ng/watch/package.yml new file mode 100644 index 00000000..2ec404d1 --- /dev/null +++ b/projects/gitlab.com/procps-ng/watch/package.yml @@ -0,0 +1,40 @@ +distributable: + url: https://gitlab.com/procps-ng/procps/-/archive/v{{ version }}/v{{ version }}.tar.gz + strip-components: 1 + +versions: + - 4.0.3 + +# Watch is broken out seperately from the rest of procps. While procps provides other +# useful tools they do not build on OSX and are part of almost every base distro already +provides: + - bin/watch + +dependencies: + invisible-island.net/ncurses: '>=6.0' + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + gnu.org/autoconf: '*' + gnu.org/automake: '*' + gnu.org/gettext: '*' + gnu.org/libtool: '*' + freedesktop.org/pkg-config: '*' + script: | + autoreconf -fiv + ./configure $ARGS + make src/watch + mkdir -p "{{ prefix }}"/bin + mv src/watch "{{ prefix }}"/bin + env: + ARGS: + - --disable-dependency-tracking + - --prefix={{ prefix }} + - --disable-nls + - --enable-watch8bit + +# FIXME: a more comprehensive test could be written with access to a TTY +test: | + watch -h