add wayland-protocols (#789)

* Create xmake.lua

* Update xmake.lua
pull/787/head
ruki 3 years ago committed by GitHub
parent a75208e726
commit 207ea37379
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      packages/w/wayland-protocols/xmake.lua

@ -0,0 +1,20 @@
package("wayland-protocols")
set_homepage("https://wayland.freedesktop.org")
set_description("Additional Wayland protocols")
set_license("MIT")
set_urls("https://wayland.freedesktop.org/releases/wayland-protocols-$(version).tar.xz")
add_versions("1.24", "bff0d8cffeeceb35159d6f4aa6bab18c807b80642c9d50f66cba52ecf7338bc2")
add_deps("meson", "ninja", "wayland", "pkg-config")
on_install("linux", function (package)
local configs = {}
table.insert(configs, "-Ddefault_library=" .. (package:config("shared") and "shared" or "static"))
import("package.tools.meson").install(package, configs)
end)
on_test(function (package)
local envs = {PKG_CONFIG_PATH = package:installdir("share/pkgconfig")}
os.vrunv("pkg-config", {"--exists", "wayland-protocols"}, {envs = envs})
end)
Loading…
Cancel
Save