distribution/packages/sysutils/ntfs-3g_ntfsprogs/package.mk

43 lines
1.5 KiB
Makefile
Raw Normal View History

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)
2022-07-01 18:56:04 +00:00
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
2022-02-05 14:23:32 +00:00
PKG_NAME="ntfs-3g_ntfsprogs"
PKG_VERSION="2021.8.22"
PKG_SHA256="55b883aa05d94b2ec746ef3966cb41e66bed6db99f22ddd41d1b8b94bb202efb"
2022-02-05 14:23:32 +00:00
PKG_LICENSE="GPL"
2022-07-01 18:56:04 +00:00
PKG_SITE="https://github.com/tuxera/ntfs-3g"
PKG_URL="https://tuxera.com/opensource/${PKG_NAME}-${PKG_VERSION}.tgz"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET="toolchain fuse libgcrypt"
PKG_LONGDESC="A NTFS driver with read and write support."
PKG_TOOLCHAIN="autotools"
PKG_BUILD_FLAGS="+lto"
PKG_CONFIGURE_OPTS_TARGET="--exec-prefix=/usr/ \
--disable-dependency-tracking \
--disable-library \
--enable-posix-acls \
--enable-mtab \
--enable-ntfsprogs \
--disable-crypto \
--with-fuse=external \
--with-uuid"
post_makeinstall_target() {
# dont include ntfsprogs.
2022-07-01 18:56:04 +00:00
for i in ${INSTALL}/usr/bin/*; do
if [ "$(basename ${i})" != "ntfs-3g" ]; then
rm ${i}
2022-02-05 14:23:32 +00:00
fi
done
2022-07-01 18:56:04 +00:00
rm -rf ${INSTALL}/sbin
rm -rf ${INSTALL}/usr/sbin/ntfsclone
rm -rf ${INSTALL}/usr/sbin/ntfscp
rm -rf ${INSTALL}/usr/sbin/ntfsundelete
2022-02-05 14:23:32 +00:00
2022-07-01 18:56:04 +00:00
mkdir -p ${INSTALL}/usr/sbin
ln -sf /usr/bin/ntfs-3g ${INSTALL}/usr/sbin/mount.ntfs
ln -sf /usr/sbin/mkntfs ${INSTALL}/usr/sbin/mkfs.ntfs
2022-02-05 14:23:32 +00:00
}