forked from semios/semios-packages
33 lines
650 B
Python
33 lines
650 B
Python
import lib.cpp as cpp
|
|
from lib.make import *
|
|
|
|
version("1.5.7")
|
|
description("Zstandard - Fast real-time compression algorithm")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url(
|
|
"https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.tar.gz"
|
|
)
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
|
|
|
|
def build():
|
|
cpp.make(["HAVE_ZLIB=0", "HAVE_LZMA=0", "HAVE_LZ4=0"])
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
package("libzstd")
|
|
cpp.use_auto_pack(["lib"])
|
|
dep("semi-libc @same-arch")
|
|
|
|
package("zstd")
|
|
cpp.use_auto_pack(["bin"])
|
|
dep("libzstd (same)")
|
|
|
|
package("libzstd-dev")
|
|
cpp.use_auto_pack(["dev"])
|
|
dep("libzstd (same)")
|