From 3a5be66ab2aaf5999ae80b292a6dbd08725cda1d Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Tue, 9 May 2023 16:48:23 +0300 Subject: [PATCH] Create package.yml --- projects/github.com/redis/hiredis/package.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 projects/github.com/redis/hiredis/package.yml diff --git a/projects/github.com/redis/hiredis/package.yml b/projects/github.com/redis/hiredis/package.yml new file mode 100644 index 00000000..9681cdf1 --- /dev/null +++ b/projects/github.com/redis/hiredis/package.yml @@ -0,0 +1,28 @@ +distributable: + url: https://github.com/redis/hiredis/archive/v{{version}}.tar.gz + strip-components: 1 + +display-name: hiredis + +versions: + github: redis/hiredis + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + script: | + make install $ARGS + + env: + ARGS: + - PREFIX="{{prefix}}" + - INSTALL_INCLUDE_PATH="{{prefix}}/include" + - INSTALL_LIBRARY_PATH="{{prefix}}/lib" + - INSTALL_PKGCONF_PATH="{{prefix}}/lib/pkgconfig" + +test: + dependencies: + freedesktop.org/pkg-config: '*' + script: + pkg-config --modversion hiredis | grep {{version}}