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-05-29 15:04:52 +00:00
|
|
|
# Copyright (C) 2020-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
#
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="parted"
|
2022-05-29 15:04:52 +00:00
|
|
|
PKG_VERSION="3.5"
|
|
|
|
PKG_SHA256="4938dd5c1c125f6c78b1f4b3e297526f18ee74aa43d45c248578b1d2470c05a2"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="http://www.gnu.org/software/parted/"
|
2022-05-29 15:04:52 +00:00
|
|
|
PKG_URL="http://ftpmirror.gnu.org/parted/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
|
|
|
PKG_DEPENDS_HOST="toolchain:host util-linux:host"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain util-linux parted:host"
|
|
|
|
PKG_DEPENDS_INIT="toolchain util-linux:init parted"
|
|
|
|
PKG_LONGDESC="GNU Parted is a program for creating, destroying, resizing, checking and copying partitions."
|
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--disable-device-mapper \
|
|
|
|
--disable-shared \
|
|
|
|
--without-readline \
|
|
|
|
--disable-rpath \
|
|
|
|
--with-gnu-ld"
|
|
|
|
|
2022-05-29 15:04:52 +00:00
|
|
|
PKG_CONFIGURE_OPTS_HOST="${PKG_CONFIGURE_OPTS_TARGET}"
|
|
|
|
|
|
|
|
pre_configure_init() {
|
|
|
|
: # reuse pre_configure_target()
|
|
|
|
}
|
|
|
|
|
|
|
|
post_configure_init() {
|
|
|
|
: # reuse post_configure_target()
|
|
|
|
}
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
configure_init() {
|
|
|
|
: # reuse configure_target()
|
|
|
|
}
|
|
|
|
|
|
|
|
make_init() {
|
|
|
|
: # reuse make_target()
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_init() {
|
2022-05-29 15:04:52 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/sbin
|
|
|
|
cp ../.${TARGET_NAME}/parted/parted ${INSTALL}/usr/sbin
|
|
|
|
cp ../.${TARGET_NAME}/partprobe/partprobe ${INSTALL}/usr/sbin
|
|
|
|
}
|
|
|
|
|
|
|
|
pre_configure_target() {
|
|
|
|
export CFLAGS+=" -I${PKG_BUILD}/lib"
|
|
|
|
}
|
|
|
|
|
|
|
|
post_configure_target() {
|
|
|
|
libtool_remove_rpath libtool
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|