From c20baabb1aae8ba38c0582560c694a523c8e56f6 Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Wed, 22 Nov 2023 16:31:23 +0200 Subject: [PATCH] new file: projects/savannah.nongnu.org/attr/package.yml --- projects/savannah.nongnu.org/attr/package.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 projects/savannah.nongnu.org/attr/package.yml diff --git a/projects/savannah.nongnu.org/attr/package.yml b/projects/savannah.nongnu.org/attr/package.yml new file mode 100644 index 00000000..8d702f58 --- /dev/null +++ b/projects/savannah.nongnu.org/attr/package.yml @@ -0,0 +1,36 @@ +distributable: + url: https://download.savannah.nongnu.org/releases/attr/attr-{{version}}.tar.gz + strip-components: 1 +display-name: attr +versions: + url: https://download.savannah.nongnu.org/releases/attr/ + match: /attr-\d+\.\d+\.\d+\.tar\.gz/ + strip: + - /^attr-/ + - /\.tar\.gz/ +platforms: + - linux +build: + dependencies: + gnu.org/gettext: '*' + script: + - ./configure $CONFIGURE_ARGS + - make --jobs {{ hw.concurrency }} install + env: + CONFIGURE_ARGS: + - --disable-debug + - --disable-dependency-tracking + - --disable-silent-rules + - --prefix="{{prefix}}" + - --libdir="{{prefix}}/lib" +provides: + - bin/attr + - bin/getfattr + - bin/setfattr +test: + - echo "Hello World!\n" > test.txt + - setfattr -n user.test -v "Hello World!" test.txt + - getfattr -d test.txt | grep 'Hello World!' + - getfattr -n user.test test.txt | grep 'Hello World!' + - getfattr -n user.test -e hex test.txt | grep '0x48656c6c6f20576f726c6421' + - attr -l test.txt