Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit 83bb49e

Browse files
committed
Add appdata file
1 parent 717a82e commit 83bb49e

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="addon">
3+
<metadata_license>CC0-1.0</metadata_license>
4+
<project_license>MPL-2.0</project_license>
5+
<id>hexchat-javascript</id>
6+
<extends>hexchat.desktop</extends>
7+
<name>Javascript Interface</name>
8+
<summary>Adds support for Javascript scripts to HexChat</summary>
9+
<url type="homepage">https://github.com/TingPing/hexchat-javascript</url>
10+
<updatecontact>tingping_at_fedoraproject.org</updatecontact>
11+
</component>
12+

makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,24 @@ CXXFLAGS += $(shell $(PKG_CONFIG) --cflags mozjs185) \
1414
$(shell $(PKG_CONFIG) --cflags hexchat-plugin)
1515
LDFLAGS += -shared
1616
LIBS += $(shell $(PKG_CONFIG) --libs mozjs185)
17+
18+
PREFIX ?= /usr
1719
OUTFILE := javascript.so
20+
1821
INSTALLDIR := $(DESTDIR)$(shell $(PKG_CONFIG) --variable=hexchatlibdir hexchat-plugin)
22+
DATADIR := $(DESTDIR)$(PREFIX)/share
1923

2024
all:
2125
$(CXX) $(CXXFLAGS) $(LDFLAGS) javascript.cpp -o $(OUTFILE) $(LIBS)
2226

2327
clean:
24-
rm $(OUTFILE)
28+
rm -f $(OUTFILE)
2529

2630
install:
2731
install -m644 -D $(OUTFILE) "$(INSTALLDIR)/$(OUTFILE)"
32+
install -m644 "data/hexchat-javascript.metainfo.xml" -t "$(DATADIR)/appdata"
2833

2934
uninstall:
3035
rm -f "$(INSTALLDIR)/$(OUTFILE)"
36+
rm -f "$(DATADIR)/appdata/hexchat-javascript.metainfo.xml"
37+

0 commit comments

Comments
 (0)