From 1d740dea046be3098e54654449df8753f6b34543 Mon Sep 17 00:00:00 2001 From: Oliver Schmidhauser Date: Fri, 23 Dec 2016 08:59:56 +0100 Subject: [PATCH] Add ed package (#607) * Add ed package Fixes #606 * change ed url to main mirror --- packages/ed/build.sh | 5 +++++ packages/ed/configure.patch | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 packages/ed/build.sh create mode 100644 packages/ed/configure.patch diff --git a/packages/ed/build.sh b/packages/ed/build.sh new file mode 100644 index 000000000..83b645158 --- /dev/null +++ b/packages/ed/build.sh @@ -0,0 +1,5 @@ +TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/ed/ +TERMUX_PKG_DESCRIPTION="Ed is a line-oriented text editor. It is used to create, display, modify and otherwise manipulate text files, both interactively and via shell scripts. " +TERMUX_PKG_VERSION=1.13 +TERMUX_PKG_MAINTAINER="Oliver Schmidhauser @Neo-Oli" +TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/ed/ed-${TERMUX_PKG_VERSION}.tar.lz diff --git a/packages/ed/configure.patch b/packages/ed/configure.patch new file mode 100644 index 000000000..6771033ec --- /dev/null +++ b/packages/ed/configure.patch @@ -0,0 +1,19 @@ +diff --git a/configure b/configure +index 50f3cad..31256c2 100755 +--- a/configure ++++ b/configure +@@ -21,10 +21,10 @@ datarootdir='$(prefix)/share' + infodir='$(datarootdir)/info' + mandir='$(datarootdir)/man' + program_prefix= +-CC=gcc +-CPPFLAGS= +-CFLAGS='-Wall -W -O2' +-LDFLAGS= ++CC?=gcc ++CPPFLAGS?= ++CFLAGS?='-Wall -W -O2' ++LDFLAGS?= + + # checking whether we are using GNU C. + ${CC} --version > /dev/null 2>&1