Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Utility for modifying GPT disk partitioning" |
| 2 | DESCRIPTION = "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." |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 3 | HOMEPAGE = "https://sourceforge.net/projects/gptfdisk/" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 4 | |
| 5 | LICENSE = "GPLv2" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" |
| 7 | |
| 8 | DEPENDS = "util-linux" |
| 9 | |
Andrew Geissler | 4b740dc | 2020-05-05 08:54:39 -0500 | [diff] [blame] | 10 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${PV}/${BP}.tar.gz \ |
| 11 | file://0001-gptcurses-correctly-include-curses.h.patch \ |
| 12 | " |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 13 | SRC_URI[sha256sum] = "754004b7f85b279287c7ac3c0469b1d7e0eae043a97a2e587b0560ca5f3828c0" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 14 | |
| 15 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/gptfdisk/files/gptfdisk/" |
| 16 | UPSTREAM_CHECK_REGEX = "/gptfdisk/(?P<pver>(\d+[\.\-_]*)+)/" |
| 17 | |
| 18 | EXTRA_OEMAKE = "'CC=${CC}' 'CXX=${CXX}' gdisk fixparts ${PACKAGECONFIG_CONFARGS}" |
| 19 | |
| 20 | PACKAGECONFIG ??= "ncurses popt" |
| 21 | PACKAGECONFIG[ncurses] = "cgdisk,,ncurses" |
| 22 | PACKAGECONFIG[popt] = "sgdisk,,popt" |
| 23 | |
| 24 | do_install() { |
| 25 | install -d ${D}${sbindir} |
| 26 | for f in cgdisk sgdisk; do |
| 27 | if [ -x $f ]; then |
| 28 | install -m 0755 $f ${D}${sbindir} |
| 29 | fi |
| 30 | done |
| 31 | install -m 0755 gdisk ${D}${sbindir} |
| 32 | install -m 0755 fixparts ${D}${sbindir} |
| 33 | } |
| 34 | |
| 35 | BBCLASSEXTEND = "native nativesdk" |