1 parent
7ae32e99e0
commit
8b31b5ae79
1 file changed
+40
@@ -0,0 +1,40 @@
|
||||
import os
|
||||
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.11.0")
|
||||
description("Extremely Fast Compression algorithm")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://lz4/lz4#v1.11.0")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.make()
|
||||
cpp.make_install([
|
||||
"prefix=/",
|
||||
f"libdir={get_prefix('liblz4')}/lib",
|
||||
f"includedir={get_prefix('liblz4-dev')}/include",
|
||||
f"bindir={get_prefix('lz4')}/bin",
|
||||
f"DESTDIR={os.getcwd()}/../cpp_install",
|
||||
])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("liblz4")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
dep("semi-libc @same-arch")
|
||||
|
||||
package("lz4")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
dep("liblz4 (same)")
|
||||
|
||||
package("liblz4-dev")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
dep("liblz4 (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
Reference in new issue
Block a user