2022-02-05 14:23:32 +00:00
|
|
|
# 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)
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="dosfstools"
|
2023-05-09 19:21:47 +00:00
|
|
|
PKG_VERSION="4.2"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPLv3"
|
|
|
|
PKG_SITE="https://github.com/dosfstools/dosfstools"
|
2023-05-09 19:21:47 +00:00
|
|
|
PKG_URL="https://github.com/dosfstools/dosfstools/releases/download/v${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.gz"
|
2022-02-05 14:23:32 +00:00
|
|
|
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"
|
|
|
|
|
|
|
|
make_init() {
|
|
|
|
: # reuse make_target()
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_init() {
|
|
|
|
mkdir -p ${INSTALL}/usr/sbin
|
|
|
|
cp ../.install_pkg/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
|
|
|
|
}
|