distribution/packages/textproc/dos2unix/package.mk
adamg 1bb5e94da4 dos2unix: introduce new package
textviewer: use dos2unix from toolchain

Dockerfile: remove dos2unix as it is built from src
2023-09-04 17:46:30 +00:00

14 lines
554 B
Makefile

# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2023-present JELOS (https://github.com/JustEnoughLinuxOS)
PKG_NAME="dos2unix"
PKG_VERSION="7.5.1"
PKG_LICENSE="GPLv3"
PKG_SITE="https://sourceforge.net/projects/dos2unix"
PKG_URL="https://downloads.sourceforge.net/project/${PKG_NAME}/${PKG_NAME}/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.gz"
PKG_DEPENDS_HOST="toolchain"
PKG_LONGDESC="Dos2Unix / Unix2Dos - Text file format converters"
post_unpack() {
sed -i "s|prefix = /usr|prefix = ${TOOLCHAIN}|" ${PKG_BUILD}/Makefile
}