dos2unix: Add package

This commit is contained in:
Fredrik Fornwall 2016-04-18 00:37:44 -04:00
parent 257e5f0171
commit a5b5a7d4fe
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,30 @@
diff -u -r ../dos2unix-7.3.3/Makefile ./Makefile
--- ../dos2unix-7.3.3/Makefile 2016-02-13 08:27:27.000000000 -0500
+++ ./Makefile 2016-04-17 23:43:06.280624377 -0400
@@ -50,7 +50,7 @@
UNIX2MAC = unix2mac
# Native Language Support (NLS)
-ENABLE_NLS = 1
+# ENABLE_NLS = 1
# Large File Support (LFS)
LFS = 1
# DEBUG=1 adds the -g option to CFLAGS, for adding debug symbols.
@@ -73,7 +73,7 @@
LINK = ln -sf
LINK_MAN = $(LINK)
-prefix = /usr
+prefix = /data/data/com.termux/files/usr/usr
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
datarootdir = $(prefix)/share
@@ -350,8 +350,6 @@
EXTRA_CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
endif
-LDFLAGS_USER =
-LDFLAGS = $(RPM_OPT_FLAGS) $(LDFLAGS_EXTRA) $(LDFLAGS_USER)
LIBS = $(LIBS_EXTRA)
DEFS_USER =

View File

@ -0,0 +1,6 @@
TERMUX_PKG_HOMEPAGE=http://dos2unix.sourceforge.net/
TERMUX_PKG_DESCRIPTION="Converts between DOS and Unix text files"
TERMUX_PKG_VERSION=7.3.3
TERMUX_PKG_SRCURL=http://waterlan.home.xs4all.nl/dos2unix/dos2unix-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_DEPENDS="libandroid-support"