diff -Naur a/hwdata.pc.in b/hwdata.pc.in
--- a/hwdata.pc.in	1970-01-01 06:00:00.000000000 +0600
+++ b/hwdata.pc.in	2023-03-10 17:01:59.000000000 +0600
@@ -0,0 +1,8 @@
+prefix=@prefix@
+datadir=@datadir@
+pkgdatadir=${pc_sysrootdir}@pkgdatadir@
+
+Name: @NAME@
+Description: Hardware identification and configuration data
+Version: @VERSION@
+URL: https://github.com/vcrhonek/hwdata
diff -Naur a/Makefile b/Makefile
--- a/Makefile	2023-08-21 12:50:39.000000000 +0600
+++ b/Makefile	2024-03-01 11:34:20.919026565 +0600
@@ -31,13 +31,27 @@
 	@echo "$@ generated. Run the make again."
 	@exit 1
 
-install: Makefile.inc
+hwdata.pc: hwdata.pc.in
+	datadir="$(datadir)"; \
+	if [ "$${datadir#$(prefix)}" != "$$datadir" ]; then \
+		datadir="\$${prefix}$${datadir#$(prefix)}"; \
+	fi; \
+	sed -e 's|@prefix@|$(prefix)|g' \
+		-e "s|@datadir@|$$datadir|g" \
+		-e 's|@pkgdatadir@|$${datadir}/$(NAME)|g' \
+		-e 's|@VERSION@|$(VERSION)|g' \
+		-e 's|@NAME@|$(NAME)|g' \
+		$< > $@
+
+install: Makefile.inc  hwdata.pc
 	mkdir -p -m 755 $(DESTDIR)$(datadir)/$(NAME)
 	for foo in $(IDFILES) ; do \
 		install -m 644 $$foo $(DESTDIR)$(datadir)/$(NAME) ;\
 	done
 	mkdir -p -m 755 $(DESTDIR)$(libdir)/modprobe.d
 	install -m 644 -T blacklist.conf $(DESTDIR)$(libdir)/modprobe.d/dist-blacklist.conf
+	mkdir -p -m 755 $(DESTDIR)$(datadir)/pkgconfig
+	install -m 644 hwdata.pc $(DESTDIR)$(datadir)/pkgconfig/
 
 commit:
 	git commit -vas ||:
@@ -89,7 +103,7 @@
 
 clean:
 	@rm -f $(NAME)-*.gz $(NAME)-*.src.rpm pnp.ids.xlsx \
-	    *.downloaded *.utf8 *.orig
+	    *.downloaded *.utf8 *.orig hwdata.pc 
 
 clog: hwdata.spec
 	@sed -n '/^%changelog/,/^$$/{/^%/d;/^$$/d;s/%%/%/g;p}' $< | tee $@
