33 lines
757 B
Python
33 lines
757 B
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("1.1.7")
|
|
description("a stand-alone library which transforms all variants of kernel MT events to the slotted type B protocol")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://bitmath.se/org/code/mtdev/mtdev-1.1.7.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep("linux-dev @target")
|
|
|
|
|
|
def build():
|
|
cpp.configure([
|
|
"--prefix=/",
|
|
f"--libdir={get_prefix('libmtdev')}/lib",
|
|
f"--includedir={get_prefix('libmtdev-dev')}/include",
|
|
])
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("libmtdev")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libmtdev-dev")
|
|
dep("libmtdev (same)")
|
|
cpp.use_auto_pack(["dev"])
|