pantry/projects/info-zip.org/unzip/package.yml
2023-10-01 20:41:57 -04:00

44 lines
996 B
YAML

distributable:
url:
#FIXME https://downloads.sourceforge.net/project/infozip/UnZip
https://cytranet.dl.sourceforge.net/project/infozip/UnZip
{{ version.major }}.x
(latest)/UnZip
{{ version.raw }}/unzip{{ version.major }}{{version.minor }}.tar.gz
strip-components: 1
versions:
- '6.0'
#TODO
# see brew formula, they apply a SHIT TONNE of patches
# because this is unmaintained I guess
# https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/unzip.rb
build:
script: |
case {{ hw.platform }} in
darwin) TARGET=macosx;;
linux)
TARGET=macosx #SURPRISE!
sed -i.bak -e '875s/-DBSD/-DBSD -fPIC/' unix/Makefile
rm unix/Makefile.bak
;;
esac
make --file unix/Makefile --jobs {{ hw.concurrency }} $TARGET LD="$LD"
make prefix={{prefix}} install
env:
darwin:
LD: cc
linux:
LD: cc -pie
test:
script: unzip -h
provides:
- bin/funzip
- bin/unzip
- bin/unzipsfx
- bin/zipgrep
- bin/zipinfo