diff --git a/metadata/categories.conf b/metadata/categories.conf index 7a0541cb..bbaaf2c1 100644 --- a/metadata/categories.conf +++ b/metadata/categories.conf @@ -13,6 +13,7 @@ games-rpg games-strategy media-sound net-firewall +net-im net-misc net-www sci-mathematics diff --git a/packages/net-im/pidgin-opensteamworks/files/pidgin-opensteamworks-1.3-Makefile b/packages/net-im/pidgin-opensteamworks/files/pidgin-opensteamworks-1.3-Makefile new file mode 100644 index 00000000..a71ece05 --- /dev/null +++ b/packages/net-im/pidgin-opensteamworks/files/pidgin-opensteamworks-1.3-Makefile @@ -0,0 +1,33 @@ +CC ?= gcc +PKG_CONFIG ?= pkg-config +INSTALL = install +INSTALL_PROGRAM = $(INSTALL) -Dm755 + +PLUGINDIR ?= $(shell $(PKG_CONFIG) --variable=plugindir purple) + +CFLAGS ?= -O2 -pipe +CFLAGS += -Wall -fPIC +LDFLAGS += -shared +CPPFLAGS += $(shell $(PKG_CONFIG) --cflags glib-2.0 json-glib-1.0 purple nss gnome-keyring-1) +LIBS += $(shell $(PKG_CONFIG) --libs glib-2.0 json-glib-1.0 purple nss) + +TARGET = libsteam.so + +OBJS = libsteam.o steam_connection.o + +%.o: %.c %.h + $(CC) $(CFLAGS) $(CPPFLAGS) -c $*.c + +$(TARGET): $(OBJS) + $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS) + +install: $(TARGET) + $(INSTALL_PROGRAM) $(TARGET) "$(DESTDIR)$(PLUGINDIR)/$(TARGET)" + +uninstall: + rm -f "$(DESTDIR)$(PLUGINDIR)/$(TARGET)" + +clean: + rm -f $(OBJS) $(TARGET) + +.PHONY: uninstall clean diff --git a/packages/net-im/pidgin-opensteamworks/pidgin-opensteamworks-1.6.1.exheres-0 b/packages/net-im/pidgin-opensteamworks/pidgin-opensteamworks-1.6.1.exheres-0 new file mode 100644 index 00000000..842098b2 --- /dev/null +++ b/packages/net-im/pidgin-opensteamworks/pidgin-opensteamworks-1.6.1.exheres-0 @@ -0,0 +1,46 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +SUMMARY="Steam protocol plugin for pidgin" +HOMEPAGE="https://github.com/eionrobb/pidgin-opensteamworks" +DOWNLOADS="https://github.com/EionRobb/${PN}/archive/${PV}.tar.gz -> ${PNV}.tar.gz" + +LICENCES="GPL-3" +SLOT="0" +PLATFORMS="~amd64 ~x86" + +DEPENDENCIES=" + build: + virtual/pkg-config + virtual/unzip + run: + core/json-glib + dev-libs/glib:2 + dev-libs/nss + gnome-desktop/libgnome-keyring + net-im/pidgin +" + +WORK=${WORKBASE} + +src_prepare() { + # see https://code.google.com/p/pidgin-opensteamworks/issues/detail?id=31 + edo cp "${FILES}"/${PN}-1.3-Makefile "${WORK}"/${PNV}/steam-mobile/Makefile + edo unzip "${WORK}"/${PNV}/steam-mobile/releases/icons.zip +} + +src_compile() { + export CC=${CC} PKG_CONFIG=${PKG_CONFIG} + edo pushd ${PNV}/steam-mobile + default + edo popd +} + +src_install() { + edo pushd ${PNV}/steam-mobile + default + edo popd + insinto /usr/share/pixmaps/pidgin/protocols + doins -r "${WORK}"/{16,48} + dodoc ${PNV}/README.md +}