xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.8.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "Utility for modifying GPT disk partitioning"
2DESCRIPTION = "GPT fdisk is a disk partitioning tool loosely modeled on Linux fdisk, but used for modifying GUID Partition Table (GPT) disks. The related FixParts utility fixes some common problems on Master Boot Record (MBR) disks."
3HOMEPAGE = "https://sourceforge.net/projects/gptfdisk/"
4
5LICENSE = "GPL-2.0-only"
6LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
7
8DEPENDS = "util-linux"
9
10SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${PV}/${BP}.tar.gz \
11           file://0001-gptcurses-correctly-include-curses.h.patch \
12           file://0001-gptcurses-correct-ncurses-6.3-errors.patch \
13           "
14SRC_URI[sha256sum] = "95d19856f004dabc4b8c342b2612e8d0a9eebdd52004297188369f152e9dc6df"
15
16UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/gptfdisk/files/gptfdisk/"
17UPSTREAM_CHECK_REGEX = "/gptfdisk/(?P<pver>(\d+[\.\-_]*)+)/"
18
19EXTRA_OEMAKE = "'CC=${CC}' 'CXX=${CXX}' gdisk fixparts ${PACKAGECONFIG_CONFARGS}"
20
21PACKAGECONFIG ??= "ncurses popt"
22PACKAGECONFIG[ncurses] = "cgdisk,,ncurses"
23PACKAGECONFIG[popt] = "sgdisk,,popt"
24
25do_install() {
26    install -d ${D}${sbindir}
27    for f in cgdisk sgdisk; do
28        if [ -x $f ]; then
29            install -m 0755 $f ${D}${sbindir}
30        fi
31    done
32    install -m 0755 gdisk ${D}${sbindir}
33    install -m 0755 fixparts ${D}${sbindir}
34}
35
36BBCLASSEXTEND = "native nativesdk"
37