2018-07-16 20:45:36 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2019-02-08 17:17:43 +00:00
|
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
2013-05-20 00:21:49 +02:00
|
|
|
|
|
|
|
|
PKG_NAME="dosfstools"
|
2021-02-01 06:57:35 +00:00
|
|
|
PKG_VERSION="4.2"
|
|
|
|
|
PKG_SHA256="64926eebf90092dca21b14259a5301b7b98e7b1943e8a201c7d726084809b527"
|
2015-09-22 01:18:27 +02:00
|
|
|
PKG_LICENSE="GPLv3"
|
2014-12-17 00:02:12 +01:00
|
|
|
PKG_SITE="https://github.com/dosfstools/dosfstools"
|
2021-02-01 06:57:35 +00:00
|
|
|
PKG_URL="https://github.com/dosfstools/dosfstools/releases/download/v${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.gz"
|
2019-10-17 20:01:27 +02:00
|
|
|
PKG_DEPENDS_HOST="toolchain:host"
|
2014-01-30 14:31:09 +01:00
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
2022-04-18 11:44:33 +02:00
|
|
|
PKG_DEPENDS_INIT="toolchain"
|
2013-05-20 00:21:49 +02:00
|
|
|
PKG_LONGDESC="dosfstools contains utilities for making and checking MS-DOS FAT filesystems."
|
2013-07-29 07:47:35 +02:00
|
|
|
|
2022-01-23 18:09:34 +01:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--enable-compat-symlinks"
|
2013-07-29 07:47:35 +02:00
|
|
|
PKG_MAKE_OPTS_TARGET="PREFIX=/usr"
|
|
|
|
|
PKG_MAKEINSTALL_OPTS_TARGET="PREFIX=/usr"
|
|
|
|
|
|
2022-04-18 11:44:33 +02:00
|
|
|
PKG_CONFIGURE_OPTS_INIT="--enable-compat-symlinks --without-iconv"
|
|
|
|
|
PKG_MAKE_OPTS_INIT="PREFIX=/usr"
|
2014-06-07 00:25:56 +02:00
|
|
|
|
|
|
|
|
makeinstall_init() {
|
2021-01-19 19:34:16 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/sbin
|
2022-04-18 11:44:33 +02:00
|
|
|
cp -P src/fsck.fat ${INSTALL}/usr/sbin
|
2021-01-19 19:34:16 +00:00
|
|
|
ln -sf fsck.fat ${INSTALL}/usr/sbin/fsck.msdos
|
|
|
|
|
ln -sf fsck.fat ${INSTALL}/usr/sbin/fsck.vfat
|
2014-06-07 00:25:56 +02:00
|
|
|
}
|
2015-10-23 18:12:19 +02:00
|
|
|
|
|
|
|
|
makeinstall_host() {
|
2021-01-19 19:34:16 +00:00
|
|
|
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
|
2015-10-23 18:12:19 +02:00
|
|
|
}
|