diff options
author | khorben <khorben@pkgsrc.org> | 2016-02-24 02:29:44 +0000 |
---|---|---|
committer | khorben <khorben@pkgsrc.org> | 2016-02-24 02:29:44 +0000 |
commit | 226e9faee7bfc3cc4727548fa26a13e5fab761a3 (patch) | |
tree | 43f9b8a9b49c28a31feb98655ca2934b9f8ab695 /chat/telegram-purple | |
parent | fc095507cdbe298a33a3c8c2c9bc0adef52d9273 (diff) | |
download | pkgsrc-226e9faee7bfc3cc4727548fa26a13e5fab761a3.tar.gz |
Package telegram-purple 1.2.5
Telegram is a cloud-based instant messaging service. Telegram clients exist for
both mobile (Android, iOS, Windows Phone, Ubuntu Touch) and desktop systems
(Windows, OS X, Linux). Users can send messages and exchange photos, videos,
stickers and files of any type up to 1.5 GB in size. Telegram also provides
optional end-to-end encrypted messaging with self-destruct timers.
This package contains a libpurple protocol plugin that adds support for the
Telegram messenger.
Diffstat (limited to 'chat/telegram-purple')
-rw-r--r-- | chat/telegram-purple/DESCR | 8 | ||||
-rw-r--r-- | chat/telegram-purple/Makefile | 40 | ||||
-rw-r--r-- | chat/telegram-purple/PLIST | 14 | ||||
-rw-r--r-- | chat/telegram-purple/distinfo | 8 | ||||
-rw-r--r-- | chat/telegram-purple/patches/patch-configure | 15 | ||||
-rw-r--r-- | chat/telegram-purple/patches/patch-tgl_tl-parser_portable__endian.h | 17 |
6 files changed, 102 insertions, 0 deletions
diff --git a/chat/telegram-purple/DESCR b/chat/telegram-purple/DESCR new file mode 100644 index 00000000000..e034d955993 --- /dev/null +++ b/chat/telegram-purple/DESCR @@ -0,0 +1,8 @@ +Telegram is a cloud-based instant messaging service. Telegram clients exist for +both mobile (Android, iOS, Windows Phone, Ubuntu Touch) and desktop systems +(Windows, OS X, Linux). Users can send messages and exchange photos, videos, +stickers and files of any type up to 1.5 GB in size. Telegram also provides +optional end-to-end encrypted messaging with self-destruct timers. + +This package contains a libpurple protocol plugin that adds support for the +Telegram messenger. diff --git a/chat/telegram-purple/Makefile b/chat/telegram-purple/Makefile new file mode 100644 index 00000000000..40f0814bc20 --- /dev/null +++ b/chat/telegram-purple/Makefile @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1 2016/02/24 02:29:44 khorben Exp $ + +DISTNAME= telegram-purple_1.2.5.orig +PKGNAME= telegram-purple-1.2.5 +CATEGORIES= chat +MASTER_SITES= ${MASTER_SITE_GITHUB:=majn/} +GITHUB_PROJECT= telegram-purple +GITHUB_RELEASE= v1.2.5 + +MAINTAINER= khorben@defora.org +HOMEPAGE= ${MASTER_SITE_GITHUB:=majn/telegram-purple/} +COMMENT= libpurple protocol plugin for the Telegram messenger +LICENSE= gnu-gpl-v3 + +WRKSRC= ${WRKDIR}/${PKGBASE} +USE_TOOLS+= gmake msgfmt pkg-config + +GNU_CONFIGURE= yes + +EGDIR= ${PREFIX}/share/examples/${PKGBASE} +CONF_FILES= ${EGDIR}/server.tglpub \ + ${PKG_SYSCONFDIR}/${PKGBASE}/server.tglpub + +INSTALLATION_DIRS+= ${EGDIR} +OWN_DIRS+= ${PKG_SYSCONFDIR}/${PKGBASE} + +SUBST_CLASSES+= tglpub +SUBST_STAGE.tglpub= post-patch +SUBST_MESSAGE.tglpub= Adjust path to server.tglpub +SUBST_FILES.tglpub= telegram-purple.c +SUBST_SED.tglpub= -e "s|/etc/|${PKG_SYSCONFDIR}/|g" + +post-install: + ${INSTALL_DATA} ${WRKSRC}/tg-server.tglpub ${DESTDIR}${EGDIR}/server.tglpub + +.include "../../chat/libpurple/buildlink3.mk" +.include "../../devel/libexecinfo/buildlink3.mk" +.include "../../graphics/libwebp/buildlink3.mk" +.include "../../security/libgcrypt/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/chat/telegram-purple/PLIST b/chat/telegram-purple/PLIST new file mode 100644 index 00000000000..4c808a3f830 --- /dev/null +++ b/chat/telegram-purple/PLIST @@ -0,0 +1,14 @@ +@comment $NetBSD: PLIST,v 1.1 2016/02/24 02:29:44 khorben Exp $ +lib/purple-2/telegram-purple.so +share/appdata/telegram-purple.metainfo.xml +share/examples/telegram-purple/server.tglpub +share/locale/de_DE/LC_MESSAGES/telegram-purple.mo +share/locale/es_AR/LC_MESSAGES/telegram-purple.mo +share/locale/pl_PL/LC_MESSAGES/telegram-purple.mo +share/locale/pt_BR/LC_MESSAGES/telegram-purple.mo +share/locale/ru_RU/LC_MESSAGES/telegram-purple.mo +share/locale/sq/LC_MESSAGES/telegram-purple.mo +share/locale/uk/LC_MESSAGES/telegram-purple.mo +share/pixmaps/pidgin/protocols/16/telegram.png +share/pixmaps/pidgin/protocols/22/telegram.png +share/pixmaps/pidgin/protocols/48/telegram.png diff --git a/chat/telegram-purple/distinfo b/chat/telegram-purple/distinfo new file mode 100644 index 00000000000..3cc39e64416 --- /dev/null +++ b/chat/telegram-purple/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1 2016/02/24 02:29:44 khorben Exp $ + +SHA1 (telegram-purple_1.2.5.orig.tar.gz) = 02db9974e55fcb31a422f5dd04f9ae7ab4e78a89 +RMD160 (telegram-purple_1.2.5.orig.tar.gz) = d5758ff69bd9cf9f7697fca5f73963dd1864cfa1 +SHA512 (telegram-purple_1.2.5.orig.tar.gz) = ff8c57c4fdad6ada0b665c6b13daba60aeeaa01656820cd9856b4ebcd31e6db9d9b7c724fb9c6f4eb911c4d600518e83d22e22cb15105c5bcfbe3be5c19d6ae5 +Size (telegram-purple_1.2.5.orig.tar.gz) = 473838 bytes +SHA1 (patch-configure) = cf16b7d00652ae3eaa399424ad84833cf76fa677 +SHA1 (patch-tgl_tl-parser_portable__endian.h) = b4c4179fbb29bdbcc368a837d0dc6a6b84e0e23c diff --git a/chat/telegram-purple/patches/patch-configure b/chat/telegram-purple/patches/patch-configure new file mode 100644 index 00000000000..84ef23e4177 --- /dev/null +++ b/chat/telegram-purple/patches/patch-configure @@ -0,0 +1,15 @@ +$NetBSD: patch-configure,v 1.1 2016/02/24 02:29:44 khorben Exp $ + +Portability fix for the configure script + +--- configure.orig 2016-01-24 15:17:10.000000000 +0000 ++++ configure +@@ -4414,7 +4414,7 @@ if test "${enable_icons+set}" = set; the + enableval=$enable_icons; + fi + +- if test "x$enable_icons" == "xno"; then : ++ if test "x$enable_icons" = "xno"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Icons are deactivated. Pidgin needs icons. Finch and telepathy-haze don't." >&5 + $as_echo "$as_me: WARNING: Icons are deactivated. Pidgin needs icons. Finch and telepathy-haze don't." >&2;} diff --git a/chat/telegram-purple/patches/patch-tgl_tl-parser_portable__endian.h b/chat/telegram-purple/patches/patch-tgl_tl-parser_portable__endian.h new file mode 100644 index 00000000000..6b2ea52b034 --- /dev/null +++ b/chat/telegram-purple/patches/patch-tgl_tl-parser_portable__endian.h @@ -0,0 +1,17 @@ +$NetBSD: patch-tgl_tl-parser_portable__endian.h,v 1.1 2016/02/24 02:29:44 khorben Exp $ + +Fix build on NetBSD + +--- tgl/tl-parser/portable_endian.h.orig 2015-10-17 13:33:25.000000000 +0000 ++++ tgl/tl-parser/portable_endian.h +@@ -49,6 +49,10 @@ + + # include <sys/endian.h> + ++#elif defined(__NetBSD__) ++ ++# include <sys/endian.h> ++ + #elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) + + # include <sys/endian.h> |