1
0
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
Lakka-rk322x/packages/sysutils/dosfstools/package.mk
Ian Leonard b31ce30170 sysutils: automated code cleanup
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-01-19 19:34:16 +00:00

43 lines
1.4 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="dosfstools"
PKG_VERSION="4.1"
PKG_SHA256="e6b2aca70ccc3fe3687365009dd94a2e18e82b688ed4e260e04b7412471cc173"
PKG_LICENSE="GPLv3"
PKG_SITE="https://github.com/dosfstools/dosfstools"
PKG_URL="https://github.com/dosfstools/dosfstools/releases/download/v${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_HOST="toolchain:host"
PKG_DEPENDS_TARGET="toolchain"
PKG_DEPENDS_INIT="toolchain dosfstools"
PKG_LONGDESC="dosfstools contains utilities for making and checking MS-DOS FAT filesystems."
PKG_CONFIGURE_OPTS_TARGET="--enable-compat-symlinks"
PKG_MAKE_OPTS_TARGET="PREFIX=/usr"
PKG_MAKEINSTALL_OPTS_TARGET="PREFIX=/usr"
configure_init() {
: # reuse configure_target()
}
make_init() {
: # reuse make_target()
}
makeinstall_init() {
mkdir -p ${INSTALL}/usr/sbin
cp $(get_install_dir dosfstools:target)/usr/sbin/fsck.fat ${INSTALL}/usr/sbin
ln -sf fsck.fat ${INSTALL}/usr/sbin/fsck.msdos
ln -sf fsck.fat ${INSTALL}/usr/sbin/fsck.vfat
}
makeinstall_host() {
mkdir -p ${TOOLCHAIN}/sbin
cp src/mkfs.fat ${TOOLCHAIN}/sbin
ln -sf mkfs.fat ${TOOLCHAIN}/sbin/mkfs.vfat
cp src/fsck.fat ${TOOLCHAIN}/sbin
ln -sf fsck.fat ${TOOLCHAIN}/sbin/fsck.vfat
cp src/fatlabel ${TOOLCHAIN}/sbin
}