git: 0b552432e344 - main - ports-mgmt/pkg-appstream: + libpkg plugin for AppStream metadata handling.

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Tue, 08 Aug 2023 07:05:33 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0b552432e344030df3f9dc9e085c3a82af5f18af

commit 0b552432e344030df3f9dc9e085c3a82af5f18af
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2023-06-04 12:16:42 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-08-08 07:05:26 +0000

    ports-mgmt/pkg-appstream: + libpkg plugin for AppStream metadata handling.
    
    Sponsored by:   Serenity Cybersecurity, LLC
---
 ports-mgmt/Makefile                |  1 +
 ports-mgmt/pkg-appstream/Makefile  | 27 +++++++++++++++++++++++++++
 ports-mgmt/pkg-appstream/distinfo  |  3 +++
 ports-mgmt/pkg-appstream/pkg-descr |  2 ++
 4 files changed, 33 insertions(+)

diff --git a/ports-mgmt/Makefile b/ports-mgmt/Makefile
index 82ff597733cc..d886328f5d6f 100644
--- a/ports-mgmt/Makefile
+++ b/ports-mgmt/Makefile
@@ -25,6 +25,7 @@
     SUBDIR += parfetch-overlay
     SUBDIR += pchecker
     SUBDIR += pkg
+    SUBDIR += pkg-appstream
     SUBDIR += pkg-devel
     SUBDIR += pkg-graph
     SUBDIR += pkg-provides
diff --git a/ports-mgmt/pkg-appstream/Makefile b/ports-mgmt/pkg-appstream/Makefile
new file mode 100644
index 000000000000..b7acf9e470b2
--- /dev/null
+++ b/ports-mgmt/pkg-appstream/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	pkg-appstream
+DISTVERSIONPREFIX=	v
+PORTVERSION=	1.0.0
+CATEGORIES=	ports-mgmt
+
+MAINTAINER=	arrowd@FreeBSD.org
+COMMENT=	Pkg plugin for downloading AppStream metadata
+WWW=		https://github.com/freebsd/pkg-appstream
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${LOCALBASE}/include/pkg.h:ports-mgmt/pkg
+
+USES=		localbase
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	freebsd
+
+MAKE_ENV=	LIBOWN=nobody LIBGRP=nobody
+
+PLIST_FILES=	lib/pkg/appstream.so
+
+pre-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/lib/pkg
+
+.include <bsd.port.mk>
diff --git a/ports-mgmt/pkg-appstream/distinfo b/ports-mgmt/pkg-appstream/distinfo
new file mode 100644
index 000000000000..7fc351647ff6
--- /dev/null
+++ b/ports-mgmt/pkg-appstream/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1691477749
+SHA256 (freebsd-pkg-appstream-v1.0.0_GH0.tar.gz) = b3e8b0dd9d8fd4deefa6a91d6e76d81c5483292ee05fabb4311eaca6a068e09e
+SIZE (freebsd-pkg-appstream-v1.0.0_GH0.tar.gz) = 2404
diff --git a/ports-mgmt/pkg-appstream/pkg-descr b/ports-mgmt/pkg-appstream/pkg-descr
new file mode 100644
index 000000000000..3896d18e481a
--- /dev/null
+++ b/ports-mgmt/pkg-appstream/pkg-descr
@@ -0,0 +1,2 @@
+This libpkg plugin is supposed to fill /var/lib/swcatalog/xml/ directory with
+up-to-date AppStream metadata from pkg repositories that support that.