32 lines
713 B
Python
32 lines
713 B
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
|
|
version("0.46.4")
|
|
description("a low-level software library for pixel manipulation")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://gitlab.freedesktop.org/pixman/pixman/-/archive/pixman-0.46.4/pixman-pixman-0.46.4.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/meson")
|
|
|
|
|
|
def build():
|
|
cpp.meson_setup([
|
|
f"--libdir={get_prefix('libpixman')}/lib",
|
|
f"--includedir={get_prefix('libpixman-dev')}/include",
|
|
])
|
|
cpp.meson_compile()
|
|
cpp.meson_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("libpixman")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libpixman-dev")
|
|
dep("libpixman (same)")
|
|
cpp.use_auto_pack(["dev"])
|