pantry/projects/strace.io/package.yml

38 lines
837 B
YAML
Raw Normal View History

2023-03-21 21:24:59 +03:00
distributable:
url: https://github.com/strace/strace/releases/download/v{{version.raw}}/strace-{{version.raw}}.tar.xz
strip-components: 1
versions:
github: strace/strace/releases/tags
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
2023-04-19 09:33:39 +03:00
if test "{{hw.platform}}" = "darwin"; then
mkdir -p "{{prefix}}"
touch "{{prefix}}/linux-only.h"
exit 0
fi
2023-03-21 21:24:59 +03:00
./configure $ARGS
make --jobs {{hw.concurrency}} install
env:
ARGS:
- --disable-dependency-tracking
- --disable-silent-rules
- --enable-mpers=no # FIX: configure: error: Cannot enable m32 personality support
- --prefix="{{prefix}}"
- --disable-gcc-Werror
provides:
2023-04-19 09:33:39 +03:00
darwin: []
linux:
- bin/strace
2023-03-21 21:24:59 +03:00
2023-04-19 09:33:39 +03:00
test: |
if test "{{hw.platform}}" = "linux"; then
strace true 2>&1
fi