chiark / gitweb /
Add Colordiff package (#548)
authorOliver Schmidhauser <oliver.schmidhauser@gmail.com>
Mon, 7 Nov 2016 23:55:19 +0000 (00:55 +0100)
committerFredrik Fornwall <fredrik@fornwall.net>
Mon, 7 Nov 2016 23:55:19 +0000 (00:55 +0100)
packages/colordiff/Makefile.patch [new file with mode: 0644]
packages/colordiff/build.sh [new file with mode: 0644]

diff --git a/packages/colordiff/Makefile.patch b/packages/colordiff/Makefile.patch
new file mode 100644 (file)
index 0000000..d0fffa6
--- /dev/null
@@ -0,0 +1,14 @@
+diff --git a/Makefile b/Makefile
+index 3315fb5..eb211c4 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,6 @@
+-INSTALL_DIR=/usr/local/bin
+-MAN_DIR=/usr/local/man/man1
+-ETC_DIR=/etc
++INSTALL_DIR?=/usr/local/bin
++MAN_DIR?=/usr/local/man/man1
++ETC_DIR?=/etc
+ VERSION=$(shell egrep '^my .version' colordiff.pl |cut -f 2 -d "'")
+ DIST_FILES=COPYING INSTALL Makefile README \
+       colordiff.pl colordiffrc colordiffrc-lightbg cdiff.sh BUGS CHANGES colordiff.1 \
diff --git a/packages/colordiff/build.sh b/packages/colordiff/build.sh
new file mode 100644 (file)
index 0000000..ba5c7c2
--- /dev/null
@@ -0,0 +1,14 @@
+TERMUX_PKG_HOMEPAGE=http://www.colordiff.org
+TERMUX_PKG_DESCRIPTION="The Perl script colordiff is a wrapper for 'diff' and produces the same output but with pretty 'syntax' highlighting."
+TERMUX_PKG_VERSION=1.0.16
+TERMUX_PKG_MAINTAINER="Oliver Schmidhauser @Neo-Oli"
+TERMUX_PKG_SRCURL=http://www.colordiff.org/colordiff-${TERMUX_PKG_VERSION}.tar.gz
+TERMUX_PKG_DEPENDS="perl"
+TERMUX_PKG_BUILD_IN_SRC=yes
+TERMUX_PKG_PLATFORM_INDEPENDENT=yes
+
+termux_step_pre_make(){
+       export INSTALL_DIR=${PREFIX}/bin
+       export MAN_DIR=${PREFIX}/share/man/man1
+       export ETC_DIR=${PREFIX}/etc
+}