Skip to content

Commit

Permalink
fix(file)
Browse files Browse the repository at this point in the history
 closes #8043
  • Loading branch information
jhheider committed Nov 27, 2024
1 parent 67a8a3d commit 789626c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions projects/darwinsys.com/file/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,24 @@ versions:
- /.tar.gz/

dependencies:
zlib.net: 1 #FIXME this is actually an optional dep
zlib.net: 1 #FIXME this is actually an optional dep

build:
dependencies:
git-scm.org: 2
gnu.org/patch: '*'
script:
- git apply props/relocatable.diff
- patch -p1 <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
- run: sed -i -e 's/^protected const char/file_protected const char/' magic.c
working-directory: src
if: '>=5.45'

- ./configure --prefix={{prefix}}
- make --jobs {{hw.concurrency}} install
- cp -a magic/Magdir {{prefix}}/share/misc/magic

test: |
file {{prefix}}/bin/file
test: file {{prefix}}/bin/file
#TODO check output, we don’t since it varies by platform annoyingly

provides:
Expand Down

0 comments on commit 789626c

Please sign in to comment.