From da2d3d5c123d671c4719a25057dab7e4def18a89 Mon Sep 17 00:00:00 2001 From: John Regan Date: Fri, 5 Feb 2016 17:02:07 -0600 Subject: [PATCH] New package: libpurple-telegram-1.2.5 --- .../patches/disable-werror.patch | 14 ++++++++++ srcpkgs/libpurple-telegram/template | 26 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 srcpkgs/libpurple-telegram/patches/disable-werror.patch create mode 100644 srcpkgs/libpurple-telegram/template diff --git a/srcpkgs/libpurple-telegram/patches/disable-werror.patch b/srcpkgs/libpurple-telegram/patches/disable-werror.patch new file mode 100644 index 00000000000..cd185fa6b6d --- /dev/null +++ b/srcpkgs/libpurple-telegram/patches/disable-werror.patch @@ -0,0 +1,14 @@ +diff --git tgl/Makefile.in tgl/Makefile.in +index f8b5154..2b3e6a9 100644 +--- tgl/Makefile.in ++++ tgl/Makefile.in +@@ -4,7 +4,7 @@ CFLAGS=@CFLAGS@ + LDFLAGS=@LDFLAGS@ @OPENSSL_LDFLAGS@ + CPPFLAGS=@CPPFLAGS@ @OPENSSL_INCLUDES@ + DEFS=@DEFS@ +-COMPILE_FLAGS=${CFLAGS} ${CPFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC ++COMPILE_FLAGS=${CFLAGS} ${CPFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Wextra -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC + + EXTRA_LIBS=@LIBS@ @EXTRA_LIBS@ @OPENSSL_LIBS@ + LOCAL_LDFLAGS=-rdynamic -ggdb ${EXTRA_LIBS} + diff --git a/srcpkgs/libpurple-telegram/template b/srcpkgs/libpurple-telegram/template new file mode 100644 index 00000000000..c4c8ff893d8 --- /dev/null +++ b/srcpkgs/libpurple-telegram/template @@ -0,0 +1,26 @@ +# Template file for 'libpurple-telegram' + +pkgname="libpurple-telegram" +version="1.2.5" +revision=1 +build_style=gnu-configure +hostmakedepends="git git-perl pkg-config" +makedepends="libpurple-devel libglib-devel libwebp-devel libgcrypt-devel" +short_desc="A Telegram plugin for libpurple" +maintainer="John Regan " +license="GPL-2" +homepage="https://github.com/majn/telegram-purple" +wrksrc="telegram-purple-${version}" +# This package builds and runs some tools as +# part of its build process, making cross-compilation +# difficult. +# TODO fix cross-compilation +nocross="yes" + +do_fetch() { + git clone "${homepage}.git" "${wrksrc}" + cd "${wrksrc}" + git checkout "v${version}" + git submodule sync + git submodule update --init --recursive +}