From d918da94e51a8a06d30f2def03b963daf536135c Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Wed, 10 May 2023 01:02:13 +0300 Subject: [PATCH] github.com/jhford/screenresolution (#1925) * new file: projects/github.com/jhford/screenresolution/package.yml * modified: projects/github.com/jhford/screenresolution/package.yml * fix arch strings --------- Co-authored-by: Jacob Heider --- .../jhford/screenresolution/package.yml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 projects/github.com/jhford/screenresolution/package.yml diff --git a/projects/github.com/jhford/screenresolution/package.yml b/projects/github.com/jhford/screenresolution/package.yml new file mode 100644 index 00000000..8c0a7121 --- /dev/null +++ b/projects/github.com/jhford/screenresolution/package.yml @@ -0,0 +1,29 @@ +distributable: + url: https://github.com/jhford/screenresolution/archive/v{{version.marketing}}.tar.gz + strip-components: 1 + +display-names: screenresolution + +versions: + github: jhford/screenresolution/tags + +platforms: + - darwin + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + script: | + curl $PATCH | patch -p1 || true + make + make PREFIX="{{prefix}}" install + env: + # Adds apple silicon support + PATCH: https://github.com/jhford/screenresolution/commit/c3c1e5c498cf2e1fbe37f90899a3d440305398bd.patch + +provides: + - bin/screenresolution + +test: + screenresolution get