summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorIsaac David <isacdaavid@isacdaavid.info>2017-10-24 11:03:51 -0500
committerIsaac David <isacdaavid@isacdaavid.info>2017-10-24 11:05:15 -0500
commit20ee079f8f661a98dc01755deadabca69f35becc (patch)
tree480dedb80c00732bc0ae6ec8b039401a26a38e73 /pcr
parent60c7b095ba6ea1c042c5222d5e6e0aab8cf226e6 (diff)
tox-prpl: add new package to [pcr]
Diffstat (limited to 'pcr')
-rw-r--r--pcr/tox-prpl/PKGBUILD39
-rw-r--r--pcr/tox-prpl/tox_callback_user_data_handling.patch41
2 files changed, 80 insertions, 0 deletions
diff --git a/pcr/tox-prpl/PKGBUILD b/pcr/tox-prpl/PKGBUILD
new file mode 100644
index 000000000..88b093974
--- /dev/null
+++ b/pcr/tox-prpl/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer (AUR): Christian Hesse <mail@eworm.de>
+# Maintainer: Isaac David <isacdaavid@at@isacdaavid@dot@info>
+
+pkgname=tox-prpl
+pkgver=0.5.1
+pkgrel=1
+pkgdesc='Tox protocol plugin for pidgin / libpurple'
+arch=('i686' 'x86_64' 'armv7h')
+url='http://tox.dhs.org/'
+license=('GPL3')
+depends=('libpurple' 'toxcore')
+makedepends=('git' 'libconfig')
+optdepends=('pidgin: Use tox in pidgin messenger')
+options=('!libtool')
+conflicts=('tox-prpl')
+provides=('tox-prpl')
+
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/jin-eld/${pkgname}/archive/v${pkgver}.tar.gz"
+ 'tox_callback_user_data_handling.patch')
+sha256sums=('51d18bd7c6a39991b70ed8aacc165796713fb252f7438498794a65abf80ce935'
+ 'f2d07bdfa0ddc01fdcb83be51cb29da135e81a748c34b5c51f2c42868537d478')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ patch -Np1 < ../tox_callback_user_data_handling.patch
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ autoreconf -i
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
diff --git a/pcr/tox-prpl/tox_callback_user_data_handling.patch b/pcr/tox-prpl/tox_callback_user_data_handling.patch
new file mode 100644
index 000000000..b0034ae64
--- /dev/null
+++ b/pcr/tox-prpl/tox_callback_user_data_handling.patch
@@ -0,0 +1,41 @@
+diff -Nurb a/src/toxprpl.c b/src/toxprpl.c
+--- a/src/toxprpl.c 2016-11-27 01:40:11.000000000 +0100
++++ b/src/toxprpl.c 2017-01-03 14:13:04.813034839 +0100
+@@ -819,7 +819,7 @@
+ toxprpl_plugin_data *plugin = purple_connection_get_protocol_data(gc);
+ if ((plugin != NULL) && (plugin->tox != NULL))
+ {
+- tox_iterate(plugin->tox);
++ tox_iterate(plugin->tox, gc);
+ }
+ return TRUE;
+ }
+@@ -1222,18 +1222,18 @@
+ {
+ toxprpl_save_account(acct, tox);
+ }
+- tox_callback_friend_message(tox, on_incoming_message, gc);
+- tox_callback_friend_name(tox, on_nick_change, gc);
+- tox_callback_friend_status(tox, on_status_change, gc);
+- tox_callback_friend_request(tox, on_request, gc);
+- tox_callback_friend_connection_status(tox, on_connectionstatus, gc);
+- tox_callback_friend_typing(tox, on_typing_change, gc);
++ tox_callback_friend_message(tox, on_incoming_message);
++ tox_callback_friend_name(tox, on_nick_change);
++ tox_callback_friend_status(tox, on_status_change);
++ tox_callback_friend_request(tox, on_request);
++ tox_callback_friend_connection_status(tox, on_connectionstatus);
++ tox_callback_friend_typing(tox, on_typing_change);
+
+
+- tox_callback_file_recv(tox, on_file_recv, gc);
+- tox_callback_file_chunk_request(tox, on_file_chunk_request, gc);
+- tox_callback_file_recv_control(tox, on_file_control, gc);
+- tox_callback_file_recv_chunk(tox, on_file_recv_chunk, gc);
++ tox_callback_file_recv(tox, on_file_recv);
++ tox_callback_file_chunk_request(tox, on_file_chunk_request);
++ tox_callback_file_recv_control(tox, on_file_control);
++ tox_callback_file_recv_chunk(tox, on_file_recv_chunk);
+
+ purple_debug_info("toxprpl", "initialized tox callbacks\n");
+