This repository was archived by the owner on May 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change @@ -14,17 +14,24 @@ CXXFLAGS += $(shell $(PKG_CONFIG) --cflags mozjs185) \
1414 $(shell $(PKG_CONFIG ) --cflags hexchat-plugin)
1515LDFLAGS += -shared
1616LIBS += $(shell $(PKG_CONFIG ) --libs mozjs185)
17+
18+ PREFIX ?= /usr
1719OUTFILE := javascript.so
20+
1821INSTALLDIR := $(DESTDIR )$(shell $(PKG_CONFIG ) --variable=hexchatlibdir hexchat-plugin)
22+ DATADIR := $(DESTDIR )$(PREFIX ) /share
1923
2024all :
2125 $(CXX ) $(CXXFLAGS ) $(LDFLAGS ) javascript.cpp -o $(OUTFILE ) $(LIBS )
2226
2327clean :
24- rm $(OUTFILE )
28+ rm -f $(OUTFILE )
2529
2630install :
2731 install -m644 -D $(OUTFILE ) " $( INSTALLDIR) /$( OUTFILE) "
32+ install -m644 " data/hexchat-javascript.metainfo.xml" -t " $( DATADIR) /appdata"
2833
2934uninstall :
3035 rm -f " $( INSTALLDIR) /$( OUTFILE) "
36+ rm -f " $( DATADIR) /appdata/hexchat-javascript.metainfo.xml"
37+
You can’t perform that action at this time.
0 commit comments