Merge pull request #84 from xmake-io/util-macros

add util-macros
pull/85/head
ruki 5 years ago committed by GitHub
commit 74a7d84af0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      packages/u/util-macros/xmake.lua

@ -0,0 +1,21 @@
package("util-macros")
set_homepage("https://www.x.org/")
set_description("X.Org: Set of autoconf macros used to build other xorg packages")
set_urls("https://www.x.org/archive/individual/util/util-macros-$(version).tar.bz2")
add_versions("1.19.2", "d7e43376ad220411499a79735020f9d145fdc159284867e99467e0d771f3e712")
add_deps("pkg-config")
on_install("macosx", "linux", function (package)
local configs = {"--sysconfdir=" .. package:installdir("etc"),
"--localstatedir=" .. package:installdir("var")}
import("package.tools.autoconf").install(package, configs)
end)
on_test(function (package)
local envs = {PKG_CONFIG_PATH = path.join(package:installdir(), "share", "pkgconfig")}
os.vrunv("pkg-config", {"--exists", "xorg-macros"}, {envs = envs})
end)
Loading…
Cancel
Save