+github.com/AgentD/squashfs-tools-ng (#4883)

* update

* does not compile on darwin

* try to compile on darwin

* clean up and lock version majors

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
tannevaled 2024-01-17 23:36:30 +01:00 committed by GitHub
parent 00ba83e738
commit af339abc23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,47 @@
distributable:
url: https://codeload.github.com/AgentD/squashfs-tools-ng/tar.gz/refs/tags/v{{version}}
strip-components: 1
display-name: squashfs-tools-ng
versions:
github: AgentD/squashfs-tools-ng/tags
strip: /^v/
dependencies:
zlib.net: ^1
tukaani.org/xz: ^5
lz4.org: ^1
facebook.com/zstd: ^1
oberhumer.com/lzo: ^2
build:
dependencies:
freedesktop.org/pkg-config: '*'
gnu.org/coreutils: '*'
gnu.org/libtool: '*'
gnu.org/automake: '*'
gnu.org/autoconf: '*'
gnu.org/gawk: '*'
gnu.org/gcc: '*'
cmake.org: ^3
script:
- autoreconf --force --install --symlink
- ./configure $ARGS
- make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --prefix="{{prefix}}"
darwin:
# FIXME: binutils ar/ranlib are broken on macOS?
AR: /usr/bin/ar
RANLIB: /usr/bin/ranlib
provides:
- bin/gensquashfs
- bin/rdsquashfs
- bin/sqfs2tar
- bin/tar2sqfs
- bin/sqfsdiff
test: test "$(gensquashfs --version|head -1 |cut -d' ' -f 3)" = {{version}}