# Description: A text-mode partitioning tool that works on GUID Partition Table (GPT) disks # URL: https://www.rodsbooks.com/gdisk/ # Maintainer: KRAK3N Team, extra ports at krak3n dot my # Depends on: popt e2fsprogs name=gptfdisk version=1.0.10 release=1 source=(https://downloads.sourceforge.net/${name}/${name}-${version}.tar.gz ${name}-1.0.9-convenience-1.patch fix-musl.patch) build() { cd ${name}-${version} patch -Np1 -i ../${name}-1.0.9-convenience-1.patch patch -Np1 -i ../fix-musl.patch sed -i 's|ncursesw/||' gptcurses.cc sed -i 's|sbin|usr/sbin|' Makefile sed -i '/UUID_H/s/^.*$/#if defined (_UUID_UUID_H) || defined (_UL_LIBUUID_UUID_H)/' guid.cc sed -i "/device =/s/= \(.*\);/= strdup(\1);/" gptcl.cc make PREFIX=/usr make PREFIX=/usr DESTDIR=$PKG install }