42 lines
931 B
Python
42 lines
931 B
Python
from lib.make import *
|
|
from lib import cpp, arch
|
|
|
|
|
|
version("2.38.0")
|
|
description("GNOME accessibility toolkit.")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://download.gnome.org/sources/atk/2.38/atk-2.38.0.tar.xz")
|
|
|
|
builddep("shortcut/c++")
|
|
builddep("shortcut/meson")
|
|
builddep("glib-dev @target")
|
|
builddep("gobject-introspection @target")
|
|
builddep("glib-tools")
|
|
builddep("libexpat")
|
|
|
|
|
|
def build():
|
|
cpp.meson_setup([
|
|
"--prefix=/",
|
|
f"--libdir={get_prefix('libatk')}/lib",
|
|
f"--includedir={get_prefix('libatk-dev')}/include",
|
|
"-Dintrospection=true",
|
|
])
|
|
cpp.meson_compile()
|
|
cpp.meson_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("libatk")
|
|
dep("libglib @same-arch")
|
|
dep("libgobject @same-arch")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libatk-dev")
|
|
dep("libatk (same)")
|
|
dep("glib-dev @same-arch")
|
|
dep("semi-libc-dev @same-arch")
|
|
cpp.use_auto_pack(["dev"])
|