distribution/packages/tools/sysutils/coreutils/package.mk
2022-02-05 09:23:32 -05:00

21 lines
904 B
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
PKG_NAME="coreutils"
PKG_VERSION="8.31"
PKG_SHA256="ff7a9c918edce6b4f4b2725e3f9b37b0c4d193531cac49a48b56c4d0d3a9e9fd"
PKG_LICENSE="GPLv2+"
PKG_SITE="https://www.gnu.org/software/coreutils/"
PKG_URL="https://ftp.gnu.org/gnu/coreutils/coreutils-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="The GNU Core Utilities are the basic file, shell and text manipulation utilities of the GNU operating system."
PKG_TOOLCHAIN="auto"
makeinstall_target() {
mkdir -p $INSTALL/usr/bin
cp $PKG_BUILD/.${TARGET_NAME}/src/stdbuf $INSTALL/usr/bin/
cp $PKG_BUILD/.${TARGET_NAME}/src/timeout $INSTALL/usr/bin/
cp $PKG_BUILD/.${TARGET_NAME}/src/sort $INSTALL/usr/bin/
mkdir -p $INSTALL/usr/lib/coreutils
cp $PKG_BUILD/.${TARGET_NAME}/src/libstdbuf.so $INSTALL/usr/lib/coreutils/
}