[arch-commits] Commit in pidgin-xmpp-receipts/repos (6 files)
Levente Polyak
anthraxx at archlinux.org
Mon Dec 14 23:32:28 UTC 2015
Date: Tuesday, December 15, 2015 @ 00:32:27
Author: anthraxx
Revision: 153330
archrelease: copy trunk to community-i686, community-x86_64
Added:
pidgin-xmpp-receipts/repos/community-i686/PKGBUILD
(from rev 153329, pidgin-xmpp-receipts/trunk/PKGBUILD)
pidgin-xmpp-receipts/repos/community-i686/makefile.patch
(from rev 153329, pidgin-xmpp-receipts/trunk/makefile.patch)
pidgin-xmpp-receipts/repos/community-x86_64/PKGBUILD
(from rev 153329, pidgin-xmpp-receipts/trunk/PKGBUILD)
pidgin-xmpp-receipts/repos/community-x86_64/makefile.patch
(from rev 153329, pidgin-xmpp-receipts/trunk/makefile.patch)
Deleted:
pidgin-xmpp-receipts/repos/community-i686/PKGBUILD
pidgin-xmpp-receipts/repos/community-x86_64/PKGBUILD
---------------------------------+
/PKGBUILD | 64 ++++++++++++++++++++++++++++++++++++++
community-i686/PKGBUILD | 31 ------------------
community-i686/makefile.patch | 45 ++++++++++++++++++++++++++
community-x86_64/PKGBUILD | 31 ------------------
community-x86_64/makefile.patch | 45 ++++++++++++++++++++++++++
5 files changed, 154 insertions(+), 62 deletions(-)
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2015-12-14 23:32:17 UTC (rev 153329)
+++ community-i686/PKGBUILD 2015-12-14 23:32:27 UTC (rev 153330)
@@ -1,31 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: <development[at]kondorgulasch[dot]de>
-
-pkgname=pidgin-xmpp-receipts
-pkgver=0.6
-pkgrel=2
-pkgdesc="This pidgin-plugin implements xmpp message delivery receipts (XEP-0184)"
-url="http://devel.kondorgulasch.de/pidgin-xmpp-receipts/"
-arch=('i686' 'x86_64')
-license=('GPL3')
-depends=('pidgin' 'libpurple')
-source=(http://devel.kondorgulasch.de/pidgin-xmpp-receipts/files/pidgin-xmpp-receipts-${pkgver}.tar.gz);
-sha512sums=('160270206d0d6394bddaa15ca59896756ab3a546f7c74cc9e3d4ec634f70b829ae3b013ee6086a5d4a5376b7d2b81341c44c3ef0ecab2a66d612b96fd37dfeff')
-
-prepare() {
- cd ${pkgname}-${pkgver}
- sed -r 's|(CFLAGS)=|\1+=|g' -i Makefile
- sed -r 's|(LDFLAGS)=|\1+=|g' -i Makefile
-}
-
-build() {
- cd ${pkgname}-${pkgver}
- make
-}
-
-package() {
- cd ${pkgname}-${pkgver}
- install -Dm 755 xmpp-receipts.so -t "${pkgdir}/usr/lib/pidgin"
-}
-
-# vim: ts=2 sw=2 et:
Copied: pidgin-xmpp-receipts/repos/community-i686/PKGBUILD (from rev 153329, pidgin-xmpp-receipts/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2015-12-14 23:32:27 UTC (rev 153330)
@@ -0,0 +1,32 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: <development[at]kondorgulasch[dot]de>
+
+pkgname=pidgin-xmpp-receipts
+pkgver=0.6
+pkgrel=3
+pkgdesc="This pidgin-plugin implements xmpp message delivery receipts (XEP-0184)"
+url="http://devel.kondorgulasch.de/pidgin-xmpp-receipts/"
+arch=('i686' 'x86_64')
+license=('GPL3')
+depends=('pidgin' 'libpurple')
+source=(http://devel.kondorgulasch.de/pidgin-xmpp-receipts/files/pidgin-xmpp-receipts-${pkgver}.tar.gz
+ makefile.patch)
+sha512sums=('160270206d0d6394bddaa15ca59896756ab3a546f7c74cc9e3d4ec634f70b829ae3b013ee6086a5d4a5376b7d2b81341c44c3ef0ecab2a66d612b96fd37dfeff'
+ '4dbc5dede45446339357908395ec8447c407c1c18af514cf67cb2b7cca372c95937c2a9c8edd032e20e8ab1cf5e74493f4f12c11af417d1b9af1aee4aae05859')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -p1 < "${srcdir}/makefile.patch"
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" PLUGINDIR="/usr/lib/pidgin" install
+}
+
+# vim: ts=2 sw=2 et:
Copied: pidgin-xmpp-receipts/repos/community-i686/makefile.patch (from rev 153329, pidgin-xmpp-receipts/trunk/makefile.patch)
===================================================================
--- community-i686/makefile.patch (rev 0)
+++ community-i686/makefile.patch 2015-12-14 23:32:27 UTC (rev 153330)
@@ -0,0 +1,45 @@
+From fbea49705cbac8554d4cdc99ef04a1c9288e7033 Mon Sep 17 00:00:00 2001
+From: anthraxx <levente at leventepolyak.net>
+Date: Mon, 14 Dec 2015 23:43:29 +0100
+Subject: [PATCH] improve Makefile with adaptive and overridable variables
+
+---
+ Makefile | 14 ++++++++------
+ 1 file changed, 8 insertions(+), 6 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 1581be4..92dbeaa 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,20 +1,22 @@
+ GTK_PIDGIN_INCLUDES= `pkg-config --cflags gtk+-2.0 pidgin`
+
+-CFLAGS= -O2 -Wall -fpic -g
+-LDFLAGS= -shared
++CC ?= gcc
++CFLAGS += -O2 -Wall -fpic
++LDFLAGS += -shared
++DESTDIR =
++PLUGINDIR = ~/.purple/plugins/
+
+ INCLUDES = \
+ $(GTK_PIDGIN_INCLUDES)
+
+ xmpp-receipts.so: xmpp-receipts.c
+- gcc xmpp-receipts.c $(CFLAGS) $(INCLUDES) $(LDFLAGS) -o xmpp-receipts.so
++ $(CC) xmpp-receipts.c $(CFLAGS) $(INCLUDES) $(LDFLAGS) -o xmpp-receipts.so
+
+ install: xmpp-receipts.so
+- mkdir -p ~/.purple/plugins
+- cp xmpp-receipts.so ~/.purple/plugins/
++ install -Dm755 xmpp-receipts.so -t $(DESTDIR)$(PLUGINDIR)
+
+ uninstall:
+- rm -f ~/.purple/plugins/xmpp-receipts.so
++ rm -f $(DESTDIR)$(PLUGINDIR)/xmpp-receipts.so
+
+ clean:
+ rm -f xmpp-receipts.so
+--
+2.6.4
+
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2015-12-14 23:32:17 UTC (rev 153329)
+++ community-x86_64/PKGBUILD 2015-12-14 23:32:27 UTC (rev 153330)
@@ -1,31 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: <development[at]kondorgulasch[dot]de>
-
-pkgname=pidgin-xmpp-receipts
-pkgver=0.6
-pkgrel=2
-pkgdesc="This pidgin-plugin implements xmpp message delivery receipts (XEP-0184)"
-url="http://devel.kondorgulasch.de/pidgin-xmpp-receipts/"
-arch=('i686' 'x86_64')
-license=('GPL3')
-depends=('pidgin' 'libpurple')
-source=(http://devel.kondorgulasch.de/pidgin-xmpp-receipts/files/pidgin-xmpp-receipts-${pkgver}.tar.gz);
-sha512sums=('160270206d0d6394bddaa15ca59896756ab3a546f7c74cc9e3d4ec634f70b829ae3b013ee6086a5d4a5376b7d2b81341c44c3ef0ecab2a66d612b96fd37dfeff')
-
-prepare() {
- cd ${pkgname}-${pkgver}
- sed -r 's|(CFLAGS)=|\1+=|g' -i Makefile
- sed -r 's|(LDFLAGS)=|\1+=|g' -i Makefile
-}
-
-build() {
- cd ${pkgname}-${pkgver}
- make
-}
-
-package() {
- cd ${pkgname}-${pkgver}
- install -Dm 755 xmpp-receipts.so -t "${pkgdir}/usr/lib/pidgin"
-}
-
-# vim: ts=2 sw=2 et:
Copied: pidgin-xmpp-receipts/repos/community-x86_64/PKGBUILD (from rev 153329, pidgin-xmpp-receipts/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2015-12-14 23:32:27 UTC (rev 153330)
@@ -0,0 +1,32 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: <development[at]kondorgulasch[dot]de>
+
+pkgname=pidgin-xmpp-receipts
+pkgver=0.6
+pkgrel=3
+pkgdesc="This pidgin-plugin implements xmpp message delivery receipts (XEP-0184)"
+url="http://devel.kondorgulasch.de/pidgin-xmpp-receipts/"
+arch=('i686' 'x86_64')
+license=('GPL3')
+depends=('pidgin' 'libpurple')
+source=(http://devel.kondorgulasch.de/pidgin-xmpp-receipts/files/pidgin-xmpp-receipts-${pkgver}.tar.gz
+ makefile.patch)
+sha512sums=('160270206d0d6394bddaa15ca59896756ab3a546f7c74cc9e3d4ec634f70b829ae3b013ee6086a5d4a5376b7d2b81341c44c3ef0ecab2a66d612b96fd37dfeff'
+ '4dbc5dede45446339357908395ec8447c407c1c18af514cf67cb2b7cca372c95937c2a9c8edd032e20e8ab1cf5e74493f4f12c11af417d1b9af1aee4aae05859')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -p1 < "${srcdir}/makefile.patch"
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" PLUGINDIR="/usr/lib/pidgin" install
+}
+
+# vim: ts=2 sw=2 et:
Copied: pidgin-xmpp-receipts/repos/community-x86_64/makefile.patch (from rev 153329, pidgin-xmpp-receipts/trunk/makefile.patch)
===================================================================
--- community-x86_64/makefile.patch (rev 0)
+++ community-x86_64/makefile.patch 2015-12-14 23:32:27 UTC (rev 153330)
@@ -0,0 +1,45 @@
+From fbea49705cbac8554d4cdc99ef04a1c9288e7033 Mon Sep 17 00:00:00 2001
+From: anthraxx <levente at leventepolyak.net>
+Date: Mon, 14 Dec 2015 23:43:29 +0100
+Subject: [PATCH] improve Makefile with adaptive and overridable variables
+
+---
+ Makefile | 14 ++++++++------
+ 1 file changed, 8 insertions(+), 6 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 1581be4..92dbeaa 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,20 +1,22 @@
+ GTK_PIDGIN_INCLUDES= `pkg-config --cflags gtk+-2.0 pidgin`
+
+-CFLAGS= -O2 -Wall -fpic -g
+-LDFLAGS= -shared
++CC ?= gcc
++CFLAGS += -O2 -Wall -fpic
++LDFLAGS += -shared
++DESTDIR =
++PLUGINDIR = ~/.purple/plugins/
+
+ INCLUDES = \
+ $(GTK_PIDGIN_INCLUDES)
+
+ xmpp-receipts.so: xmpp-receipts.c
+- gcc xmpp-receipts.c $(CFLAGS) $(INCLUDES) $(LDFLAGS) -o xmpp-receipts.so
++ $(CC) xmpp-receipts.c $(CFLAGS) $(INCLUDES) $(LDFLAGS) -o xmpp-receipts.so
+
+ install: xmpp-receipts.so
+- mkdir -p ~/.purple/plugins
+- cp xmpp-receipts.so ~/.purple/plugins/
++ install -Dm755 xmpp-receipts.so -t $(DESTDIR)$(PLUGINDIR)
+
+ uninstall:
+- rm -f ~/.purple/plugins/xmpp-receipts.so
++ rm -f $(DESTDIR)$(PLUGINDIR)/xmpp-receipts.so
+
+ clean:
+ rm -f xmpp-receipts.so
+--
+2.6.4
+
More information about the arch-commits
mailing list