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)
|
2020-02-16 03:46:57 +00:00
|
|
|
# Copyright (C) 2020-present Team LibreELEC (https://libreelec.tv)
|
2011-01-09 18:44:38 +01:00
|
|
|
|
2010-11-14 12:38:13 +01:00
|
|
|
PKG_NAME="parted"
|
2023-04-11 13:14:28 +00:00
|
|
|
PKG_VERSION="3.6"
|
|
|
|
|
PKG_SHA256="3b43dbe33cca0f9a18601ebab56b7852b128ec1a3df3a9b30ccde5e73359e612"
|
2010-11-14 12:38:13 +01:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
|
PKG_SITE="http://www.gnu.org/software/parted/"
|
2021-01-19 19:34:16 +00:00
|
|
|
PKG_URL="http://ftpmirror.gnu.org/parted/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
2019-10-17 20:01:27 +02:00
|
|
|
PKG_DEPENDS_HOST="toolchain:host util-linux:host"
|
2014-01-30 14:31:09 +01:00
|
|
|
PKG_DEPENDS_TARGET="toolchain util-linux parted:host"
|
2014-09-23 15:25:13 +02:00
|
|
|
PKG_DEPENDS_INIT="toolchain util-linux:init parted"
|
2018-10-22 15:06:12 +02:00
|
|
|
PKG_LONGDESC="GNU Parted is a program for creating, destroying, resizing, checking and copying partitions."
|
2013-09-26 20:40:40 +03:00
|
|
|
|
2013-10-11 20:01:20 +03:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--disable-device-mapper \
|
2014-09-20 14:05:24 +02:00
|
|
|
--disable-shared \
|
|
|
|
|
--without-readline \
|
|
|
|
|
--disable-rpath \
|
|
|
|
|
--with-gnu-ld"
|
2013-09-26 20:40:40 +03:00
|
|
|
|
2021-01-19 19:34:16 +00:00
|
|
|
PKG_CONFIGURE_OPTS_HOST="${PKG_CONFIGURE_OPTS_TARGET}"
|
2014-02-07 10:58:35 +02:00
|
|
|
|
2020-02-16 03:46:57 +00:00
|
|
|
pre_configure_init() {
|
|
|
|
|
: # reuse pre_configure_target()
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-08 11:06:40 +00:00
|
|
|
post_configure_init() {
|
|
|
|
|
: # reuse post_configure_target()
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-23 15:25:13 +02:00
|
|
|
configure_init() {
|
|
|
|
|
: # reuse configure_target()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
make_init() {
|
|
|
|
|
: # reuse make_target()
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-20 14:05:24 +02:00
|
|
|
makeinstall_init() {
|
2021-08-28 13:40:53 +10:00
|
|
|
mkdir -p ${INSTALL}/usr/sbin
|
|
|
|
|
cp ../.${TARGET_NAME}/parted/parted ${INSTALL}/usr/sbin
|
|
|
|
|
cp ../.${TARGET_NAME}/partprobe/partprobe ${INSTALL}/usr/sbin
|
2013-09-26 20:40:40 +03:00
|
|
|
}
|
2020-02-16 03:46:57 +00:00
|
|
|
|
|
|
|
|
pre_configure_target() {
|
2021-01-19 19:34:16 +00:00
|
|
|
export CFLAGS+=" -I${PKG_BUILD}/lib"
|
2020-02-16 03:46:57 +00:00
|
|
|
}
|
2022-01-08 11:06:40 +00:00
|
|
|
|
|
|
|
|
post_configure_target() {
|
|
|
|
|
libtool_remove_rpath libtool
|
|
|
|
|
}
|