Browse Source

dos2unix: Add package

android-5
Fredrik Fornwall 9 years ago
parent
commit
a5b5a7d4fe
  1. 30
      packages/dos2unix/Makefile.patch
  2. 6
      packages/dos2unix/build.sh

30
packages/dos2unix/Makefile.patch

@ -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 =

6
packages/dos2unix/build.sh

@ -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"
Loading…
Cancel
Save