From ea06f4497e5e148e5a9dcf8298042299327b1fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 28 Mar 2024 09:24:49 +0700 Subject: [PATCH] libpurple-steam: update to 1.7.2. --- .../patches/fix-makefile.patch | 48 ------------------- srcpkgs/libpurple-steam/template | 17 ++++--- 2 files changed, 8 insertions(+), 57 deletions(-) delete mode 100644 srcpkgs/libpurple-steam/patches/fix-makefile.patch diff --git a/srcpkgs/libpurple-steam/patches/fix-makefile.patch b/srcpkgs/libpurple-steam/patches/fix-makefile.patch deleted file mode 100644 index 96f473bcfbc..00000000000 --- a/srcpkgs/libpurple-steam/patches/fix-makefile.patch +++ /dev/null @@ -1,48 +0,0 @@ -diff --git steam-mobile/Makefile steam-mobile/Makefile -index 853f107..5d5c0be 100644 ---- a/steam-mobile/Makefile -+++ b/steam-mobile/Makefile -@@ -1,17 +1,35 @@ -+CC ?= gcc -+CFLAGS = -Wall -I. -fPIC -pipe -+PKG_CONFIG ?= pkg-config - --COMPILER = gcc -+DIR_PERM = 0755 -+FILE_PERM = 0644 - --LIBPURPLE_CFLAGS += $(shell pkg-config --cflags glib-2.0 json-glib-1.0 purple nss gnome-keyring-1) --LIBPURPLE_LIBS += $(shell pkg-config --libs glib-2.0 json-glib-1.0 purple nss) -+LIBPURPLE_CFLAGS += $(shell $(PKG_CONFIG) --cflags glib-2.0 json-glib-1.0 purple nss gnome-keyring-1) -+LIBPURPLE_LIBS += $(shell $(PKG_CONFIG) --libs glib-2.0 json-glib-1.0 purple nss) -+PLUGIN_DIR_PURPLE = $(shell $(PKG_CONFIG) --variable=plugindir purple) -+DATA_ROOT_DIR_PURPLE = $(shell $(PKG_CONFIG) --variable=datarootdir purple) -+ -+ -+PRPL_NAME = libsteam.so - - STEAM_SOURCES = \ - steam_connection.c \ - libsteam.c - - .PHONY: all clean install --all: libsteam.so -+all: $(PRPL_NAME) -+install: -+ mkdir -m $(DIR_PERM) -p $(DESTDIR)$(PLUGIN_DIR_PURPLE) -+ install -m $(FILE_PERM) $(PRPL_NAME) $(DESTDIR)$(PLUGIN_DIR_PURPLE)/$(PRPL_NAME) -+ mkdir -m $(DIR_PERM) -p $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/16 -+ install -m $(FILE_PERM) steam16.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/16/steam.png -+ mkdir -m $(DIR_PERM) -p $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/22 -+ install -m $(FILE_PERM) steam22.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/22/steam.png -+ mkdir -m $(DIR_PERM) -p $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/48 -+ install -m $(FILE_PERM) steam48.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/48/steam.png - clean: -- rm -f libsteam.so -+ rm -f $(PRPL_NAME) - --libsteam.so: ${STEAM_SOURCES} -- ${COMPILER} -Wall -I. -g -O2 -fPIC -pipe ${STEAM_SOURCES} -o $@ ${LIBPURPLE_CFLAGS} ${LIBPURPLE_LIBS} -shared -+libsteam.so: $(STEAM_SOURCES) -+ $(CC) $(CFLAGS) $(STEAM_SOURCES) -o $@ $(LIBPURPLE_CFLAGS) $(LIBPURPLE_LIBS) -shared - diff --git a/srcpkgs/libpurple-steam/template b/srcpkgs/libpurple-steam/template index 22f319c50b3..fb400cd7df5 100644 --- a/srcpkgs/libpurple-steam/template +++ b/srcpkgs/libpurple-steam/template @@ -1,17 +1,16 @@ # Template file for 'libpurple-steam' -pkgname="libpurple-steam" -version="1.6.1" -revision=2 +pkgname=libpurple-steam +version=1.7.2 +revision=1 build_style=gnu-makefile hostmakedepends="pkg-config" -makedepends="libpurple-devel json-glib-devel libglib-devel nss-devel libgnome-keyring-devel" -short_desc="A Steam plugin for libpurple - uses the Steam Mobile API" +makedepends="libpurple-devel json-glib-devel libglib-devel nss-devel + libsecret-devel" +short_desc="Steam plugin for libpurple - uses the Steam Mobile API" maintainer="Orphaned " -license="GPL-3" +license="GPL-3.0-or-later" homepage="https://github.com/EionRobb/pidgin-opensteamworks" distfiles="https://github.com/EionRobb/pidgin-opensteamworks/archive/${version}.tar.gz" -checksum=6a63248ed67f85185d32760246a22fea58e49af2d8a604abaa2cb3a3b5368a01 +checksum=5dbb2e5b57e1a6f76df1b301fec0df8559008722f6a8d537006120052a87e53d build_wrksrc="steam-mobile" - -CFLAGS="-fPIC -I."