From 420ba6dca3b1fc2a1d18a73ca327309fb019d324 Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Wed, 15 Aug 2018 13:54:29 +0300 Subject: [PATCH] new package: toxic --- packages/toxic/build.sh | 22 ++++++++++++++++++++++ packages/toxic/disable_librt_link.patch | 9 +++++++++ 2 files changed, 31 insertions(+) create mode 100644 packages/toxic/build.sh create mode 100644 packages/toxic/disable_librt_link.patch diff --git a/packages/toxic/build.sh b/packages/toxic/build.sh new file mode 100644 index 000000000..2d29e5618 --- /dev/null +++ b/packages/toxic/build.sh @@ -0,0 +1,22 @@ +TERMUX_PKG_MAINTAINER="Leonid Plyushch @xeffyr" + +TERMUX_PKG_HOMEPAGE=https://github.com/JFreegman/toxic +TERMUX_PKG_DESCRIPTION="A command line client for Tox" +TERMUX_PKG_VERSION=0.8.2 +TERMUX_PKG_SRCURL=https://github.com/JFreegman/toxic/archive/v${TERMUX_PKG_VERSION}/toxic-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=53bdbed3d72d000f9e43b8823523c589540b811bc237ed6f3b4ddf0fe6f9a6b7 +TERMUX_PKG_DEPENDS="c-toxcore, libconfig, libcurl, libqrencode, ncurses" +TERMUX_PKG_BUILD_IN_SRC=true + +termux_step_make() { + make \ + PREFIX="${TERMUX_PREFIX}" \ + CC="${CC}" \ + PKG_CONFIG="${PKG_CONFIG}" \ + USER_CFLAGS="${CFLAGS}" \ + USER_LDFLAGS="${LDFLAGS}" +} + +termux_step_make_install() { + make PREFIX="${TERMUX_PREFIX}" install +} diff --git a/packages/toxic/disable_librt_link.patch b/packages/toxic/disable_librt_link.patch new file mode 100644 index 000000000..62d8bcaa1 --- /dev/null +++ b/packages/toxic/disable_librt_link.patch @@ -0,0 +1,9 @@ +diff -uNr toxic-0.8.2/cfg/systems/Linux.mk toxic-0.8.2.mod/cfg/systems/Linux.mk +--- toxic-0.8.2/cfg/systems/Linux.mk 2018-02-28 01:46:56.000000000 +0200 ++++ toxic-0.8.2.mod/cfg/systems/Linux.mk 2018-08-15 13:43:59.718436398 +0300 +@@ -1,4 +1,4 @@ + # Specials options for linux systems + CFLAGS += +-LDFLAGS += -ldl -lrt -lcurl ++LDFLAGS += -ldl -lcurl + MANDIR = $(PREFIX)/share/man