2022-10-03 18:30:12 +03:00
|
|
|
|
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:
|
2023-05-01 20:14:59 +03:00
|
|
|
|
url: https://astron.com/pub/file/
|
|
|
|
|
match: /file-\d+\.\d+\.tar\.gz/
|
|
|
|
|
strip:
|
|
|
|
|
- /file-/
|
|
|
|
|
- /.tar.gz/
|
2022-10-03 18:30:12 +03:00
|
|
|
|
|
|
|
|
|
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
|
2023-07-28 01:02:18 +03:00
|
|
|
|
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
|
2022-10-03 18:30:12 +03:00
|
|
|
|
|
|
|
|
|
test: |
|
|
|
|
|
file {{prefix}}/bin/file
|
|
|
|
|
#TODO check output, we don’t since it varies by platform annoyingly
|
2022-11-18 21:43:48 +03:00
|
|
|
|
|
|
|
|
|
provides:
|
|
|
|
|
- bin/file
|