serenity/Ports/zlib/package.sh

21 lines
680 B
Bash
Raw Normal View History

2021-01-23 05:44:05 +13:00
#!/usr/bin/env -S bash ../.port_include.sh
2019-10-05 21:34:19 +01:00
port=zlib
version=1.2.11
useconfigure=true
files="https://www.zlib.net/zlib-${version}.tar.gz zlib-${version}.tar.gz
https://www.zlib.net/zlib-${version}.tar.gz.asc zlib-${version}.tar.gz.asc"
auth_type="sig"
auth_import_key="783FCD8E58BCAFBA"
auth_opts="zlib-${version}.tar.gz.asc"
2019-10-05 21:34:19 +01:00
configure() {
run ./configure
}
install() {
run make DESTDIR=${SERENITY_INSTALL_ROOT} $installopts install
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libz.so -Wl,-soname,libz.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libz.a -Wl,--no-whole-archive
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libz.la
2019-10-05 21:34:19 +01:00
}