feat: add package pixman #174
@@ -0,0 +1,31 @@
|
|||||||
|
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://cairographics.org/releases/pixman-0.46.4.tar.xz")
|
||||||
|
|
||||||
|
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"])
|
||||||
Reference in New Issue
Block a user