Files
packages/utils/dos2unix/Makefile
T
Tianling Shen 6536260c01 dos2unix: Update to 7.5.5
2026-04-06: Version 7.5.5

 * New option --error-binary: Return an error if a
   binary file is skipped.
 * Fix: dos2unix error on empty input. The problem was introduced
   in version 7.5.4.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2026-05-09 10:55:47 +08:00

54 lines
1.3 KiB
Makefile

# SPDX-License-Identifier: GPL-3.0-only
#
# Copyright (C) 2022 ImmortalWrt.org
include $(TOPDIR)/rules.mk
PKG_NAME:=dos2unix
PKG_VERSION:=7.5.5
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://waterlan.home.xs4all.nl/dos2unix/ \
@SF/dos2unix
PKG_HASH:=75f692b8484c8c24579a2ffd87df16b9c9428ed95497e3393a21d1ba0697ac33
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
PKG_LICENSE:=BSD-2-Clause
PKG_LICENSE_FILES:=COPYING.txt
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
MAKE_FLAGS+= D2U_OS=Linux ENABLE_NLS=
define dos2unix/template
define Package/$(1)
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Text file format converters ($(1))
URL:=https://waterlan.home.xs4all.nl/dos2unix.html
PROVIDES:=$(2)
endef
define Package/$(1)/description
Convert text files with DOS or Mac line breaks to Unix line breaks
and vice versa.
This package contains the $(1).
endef
define Package/$(1)/install
$$(INSTALL_DIR) $$(1)/usr/bin
$$(INSTALL_BIN) $$(PKG_INSTALL_DIR)/usr/bin/$(1) $$(1)/usr/bin/
$$(LN) $(1) $$(1)/usr/bin/$(2)
endef
$$(eval $$(call BuildPackage,$(1)))
endef
$(eval $(call dos2unix/template,dos2unix,mac2unix))
$(eval $(call dos2unix/template,unix2dos,unix2mac))