forked from hasufell/hasufell-repository
net-im/pidgin-opensteamworks: initial import of version 1.6.1
This commit is contained in:
parent
0a30282f04
commit
fc478606e1
@ -13,6 +13,7 @@ games-rpg
|
|||||||
games-strategy
|
games-strategy
|
||||||
media-sound
|
media-sound
|
||||||
net-firewall
|
net-firewall
|
||||||
|
net-im
|
||||||
net-misc
|
net-misc
|
||||||
net-www
|
net-www
|
||||||
sci-mathematics
|
sci-mathematics
|
||||||
|
@ -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
|
@ -0,0 +1,46 @@
|
|||||||
|
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
||||||
|
# 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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user