瀏覽代碼

add gtk4 package (#1434)

Romain Chardiny 3 年之前
父節點
當前提交
63aaf00406
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      packages/g/gtk+4/xmake.lua

+ 14 - 0
packages/g/gtk+4/xmake.lua

@@ -0,0 +1,14 @@
+package("gtk+4")
+
+    set_homepage("https://gtk.org/")
+    set_description("Toolkit for creating graphical user interfaces")
+    set_license("LGPL-2.0-or-later")
+
+    if on_fetch then
+        on_fetch("linux", function (package, opt)
+            if opt.system and package.find_package then
+                return package:find_package("pkgconfig::gtk4")
+            end
+        end)
+    end
+