1SUMMARY="A small tool which tries to guess what partitions are on a hard disk" 2DESCRIPTION="Gpart is a small tool which tries to guess what partitions are \ 3on a PC type, MBR-partitioned hard disk in case the primary partition table \ 4was damaged." 5HOMEPAGE="https://github.com/baruch/gpart" 6COPYRIGHT="1999-2022 Michail Brzitwa" 7LICENSE="GNU GPL v2" 8REVISION="1" 9srcGitRev="b507b6d562395542fd7a20052cdd115fae052b37" 10SOURCE_URI="https://github.com/baruch/gpart/archive/$srcGitRev.tar.gz" 11CHECKSUM_SHA256="7632da9c91b1f9b0e90a39c10595f934c5e483999bd04f5166a910cf9ea800af" 12SOURCE_FILENAME="gpart-$portVersion-$srcGitRev.tar.gz" 13SOURCE_DIR="gpart-$srcGitRev" 14PATCHES="17.patch 15 18.patch 16 gpart-$portVersion.patchset" 17 18ARCHITECTURES="?all" 19 20PROVIDES=" 21 gpart = $portVersion 22 cmd:gpart = $portVersion 23 " 24REQUIRES=" 25 haiku 26 " 27 28BUILD_REQUIRES=" 29 haiku_devel 30 " 31 32BUILD_PREREQUIRES=" 33 cmd:aclocal 34 cmd:autoreconf 35 cmd:awk 36 cmd:gcc 37 cmd:make 38 " 39 40PATCH() 41{ 42 # fix version 43 sed -i 's/0.2.3-dev/0.3-dev/g' configure.ac 44} 45 46BUILD() 47{ 48 autoreconf -vfi 49 CFLAGS="-D_BSD_SOURCE" runConfigure ./configure 50 make $jobArgs 51} 52 53INSTALL() 54{ 55 make install 56} 57