distributable:
  url: https://github.com/madler/zlib/archive/refs/tags/v{{version.raw}}.tar.gz
  strip-components: 1

versions:
  github: madler/zlib
  strip: /^v/

# dependencies:
#   zlib.net: '*'

build:
  dependencies:
    gnu.org/autoconf: ^2
    gnu.org/automake: ^1
    gnu.org/libtool: ^2
    # zlib.net: '*'
  script: |
    cd contrib/minizip
    autoreconf -fi
    ./configure --prefix={{prefix}}
    make install

test: cc test.c -o test -lminizip -lz
