aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/appstream-glib
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/appstream-glib')
-rw-r--r--vcpkg/ports/appstream-glib/portfile.cmake32
-rw-r--r--vcpkg/ports/appstream-glib/vcpkg.json30
2 files changed, 62 insertions, 0 deletions
diff --git a/vcpkg/ports/appstream-glib/portfile.cmake b/vcpkg/ports/appstream-glib/portfile.cmake
new file mode 100644
index 0000000..fabd921
--- /dev/null
+++ b/vcpkg/ports/appstream-glib/portfile.cmake
@@ -0,0 +1,32 @@
+string(REPLACE "." "_" appstream_glib_version "appstream_glib_${VERSION}")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO hughsie/appstream-glib
+ REF "${appstream_glib_version}"
+ SHA512 720182ef507777ca818b1e955e16b1b8691927882664c1cc42e094ad10949036991ffb9a666e2f3f104cb1ca29ed824c507e9b8e46089d54b41d30b7fed0d71c
+ HEAD_REF main
+)
+
+vcpkg_configure_meson(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -Ddep11=false
+ -Dbuilder=true
+ -Drpm=false
+ -Dalpm=false
+ -Dfonts=true
+ -Dman=false
+ -Dgtk-doc=false
+ -Dintrospection=false
+ ADDITIONAL_BINARIES
+ "gperf = ['${CURRENT_HOST_INSTALLED_DIR}/tools/gperf/gperf${VCPKG_HOST_EXECUTABLE_SUFFIX}']"
+)
+
+vcpkg_install_meson()
+vcpkg_copy_pdbs()
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
diff --git a/vcpkg/ports/appstream-glib/vcpkg.json b/vcpkg/ports/appstream-glib/vcpkg.json
new file mode 100644
index 0000000..474642d
--- /dev/null
+++ b/vcpkg/ports/appstream-glib/vcpkg.json
@@ -0,0 +1,30 @@
+{
+ "name": "appstream-glib",
+ "version": "0.8.3",
+ "description": "Provides GObjects and helper methods to make it easy to read and write AppStream metadata.",
+ "homepage": "https://github.com/hughsie/appstream-glib/",
+ "license": "LGPL-2.1-or-later",
+ "supports": "!windows | mingw",
+ "dependencies": [
+ "curl",
+ "fontconfig",
+ "freetype",
+ "gdk-pixbuf",
+ "glib",
+ {
+ "name": "gperf",
+ "host": true
+ },
+ "gtk3",
+ "json-glib",
+ "libarchive",
+ {
+ "name": "libuuid",
+ "platform": "linux"
+ },
+ {
+ "name": "vcpkg-tool-meson",
+ "host": true
+ }
+ ]
+}