pantry/projects/info-zip.org/unzip/package.yml

48 lines
1 KiB
YAML
Raw Normal View History

2022-08-05 16:43:01 +03:00
distributable:
url:
2022-08-17 15:22:22 +03:00
#FIXME https://downloads.sourceforge.net/project/infozip/UnZip
https://cytranet.dl.sourceforge.net/project/infozip/UnZip
2022-08-05 16:43:01 +03:00
{{ 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:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
case {{ hw.platform }} in
darwin) TARGET=macosx;;
2023-04-14 21:21:20 +03:00
linux)
TARGET=macosx #SURPRISE!
sed -i.bak -e '875s/-DBSD/-DBSD -fPIC/' unix/Makefile
rm unix/Makefile.bak
;;
2022-08-05 16:43:01 +03:00
esac
2023-04-14 21:21:20 +03:00
make --file unix/Makefile --jobs {{ hw.concurrency }} $TARGET LD="$LD"
2022-08-05 16:43:01 +03:00
make prefix={{prefix}} install
2023-04-14 21:21:20 +03:00
env:
darwin:
LD: cc
linux:
LD: cc -pie
2022-08-05 16:43:01 +03:00
test:
script: unzip -h
provides:
- bin/funzip
- bin/unzip
- bin/unzipsfx
- bin/zipgrep
- bin/zipinfo