forked from semios/ports
39 lines
855 B
Python
39 lines
855 B
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("1.13.7")
|
|
description("Wrapper library for evdev devices")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_managed("gitlab://gitlab.freedesktop.org/libevdev/libevdev#libevdev-1.13.7")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/meson")
|
|
builddep("linux-dev @target")
|
|
|
|
|
|
def build():
|
|
cpp.meson_setup([
|
|
"--prefix=/",
|
|
f"--libdir={get_prefix('libevdev')}/lib",
|
|
f"--includedir={get_prefix('libevdev-dev')}/include",
|
|
"-Dtests=disabled",
|
|
"-Ddocumentation=disabled",
|
|
])
|
|
cpp.meson_compile()
|
|
cpp.meson_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("libevdev")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libevdev-tools")
|
|
dep("libevdev (same)")
|
|
cpp.use_auto_pack(["bin"])
|
|
|
|
package("libevdev-dev")
|
|
dep("libevdev (same)")
|
|
cpp.use_auto_pack(["dev"])
|