pantry/projects/darwinsys.com/file/package.yml
Jacob Heider 0f359252df
fix(file)
2023-07-27 18:02:18 -04:00

39 lines
913 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

distributable:
url: https://astron.com/pub/file/file-{{version.raw}}.tar.gz
#TODO url: ftp://ftp.astron.com/pub/file/file-{{version.raw}}.tar.gz
strip-components: 1
versions:
url: https://astron.com/pub/file/
match: /file-\d+\.\d+\.tar\.gz/
strip:
- /file-/
- /.tar.gz/
dependencies:
zlib.net: 1 #FIXME this is actually an optional dep
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
git-scm.org: 2
script:
- git apply props/relocatable.diff
# Our diff has old labels
- run: |
sed -i.bak -e 's/^protected const char/file_protected const char/' magic.c
rm magic.c.bak
working-directory: src
if: '>=5.45'
- ./configure --prefix={{prefix}}
- make --jobs {{hw.concurrency}} install
test: |
file {{prefix}}/bin/file
#TODO check output, we dont since it varies by platform annoyingly
provides:
- bin/file