pantry/projects/rarlab.com/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

33 lines
850 B
YAML
Raw Permalink 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.

# NOTE `unrar` is open source. `rar` is NOT ∴ we only distribute unrar
distributable:
url: https://www.rarlab.com/rar/unrarsrc-{{version.raw}}.tar.gz
strip-components: 1
versions:
# NOTE I couldnt find a listing so this can only find the latest version :-/
url: https://www.rarlab.com/rar_add.htm
match: /unrarsrc-\d+(\.\d+)+\.tar\.gz/
strip:
- /^unrarsrc-/
- /\.tar\.gz$/
build:
dependencies:
gnu.org/coreutils: ^9
script:
- make CXXFLAGS=-std=c++11
- install -D unrar {{prefix}}/bin/unrar
provides:
- bin/unrar
# cannot do a version comparison because the version the utility outputs is
# not the same as the source tarball version… WTF
# it seems the unrar utility matches the version from the rar utility and
# the sources are versioned independently from that
test:
unrar
display-name: unrar