@@ -0,0 +1,41 @@
|
||||
import os
|
||||
|
||||
import lib.cpp as cpp
|
||||
from lib.make import *
|
||||
|
||||
version("2.3.3")
|
||||
description("zlib replacement with optimizations for next generation systems")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/zlib-ng/zlib-ng/archive/refs/tags/2.3.3.tar.gz")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libz-ng')}/lib",
|
||||
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libz-ng-dev')}/include",
|
||||
f"-DCMAKE_INSTALL_BINDIR={get_prefix('zlib-ng-tools')}/bin",
|
||||
"-DZLIB_COMPAT=ON",
|
||||
"-DINSTALL_UTILS=ON",
|
||||
"-DBUILD_TESTING=OFF",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
package("libz-ng")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
provide("libz@same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
|
||||
package("zlib-ng-tools")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
dep("libz-ng (same)")
|
||||
|
||||
package("libz-ng-dev")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
dep("libz-ng (same)")
|
||||
provide("libz-dev@same-arch")
|
||||
Reference in New Issue
Block a user