forked from semios/ports
42 lines
879 B
Python
42 lines
879 B
Python
import os
|
|
|
|
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("5.8.3")
|
|
description("a general-purpose LZMA data-compression library plus command-line tools")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_managed("github://tukaani-project/xz#v5.8.3", "autotools")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
|
|
|
|
def build():
|
|
os.environ["FGREP"] = "grep -F"
|
|
cpp.configure(
|
|
[
|
|
"--prefix=/",
|
|
f"--libdir={get_prefix('liblzma')}/lib",
|
|
f"--bindir={get_prefix('xz')}/bin",
|
|
f"--includedir={get_prefix('liblzma-dev')}/include",
|
|
]
|
|
)
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
package("liblzma")
|
|
cpp.use_auto_pack(["lib"])
|
|
dep("semi-libc @same-arch")
|
|
|
|
package("xz")
|
|
cpp.use_auto_pack(["bin"])
|
|
dep("liblzma (same)")
|
|
|
|
package("liblzma-dev")
|
|
cpp.use_auto_pack(["dev"])
|
|
dep("liblzma (same)")
|