mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Co-authored-by: sfanxiang <sfanxiang@gmail.com> Co-authored-by: localanu <localanu@gmail.com>
57 lines
1.1 KiB
Bash
57 lines
1.1 KiB
Bash
SUMMARY="A small tool which tries to guess what partitions are on a hard disk"
|
|
DESCRIPTION="Gpart is a small tool which tries to guess what partitions are \
|
|
on a PC type, MBR-partitioned hard disk in case the primary partition table \
|
|
was damaged."
|
|
HOMEPAGE="https://github.com/baruch/gpart"
|
|
COPYRIGHT="1999-2022 Michail Brzitwa"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
srcGitRev="b507b6d562395542fd7a20052cdd115fae052b37"
|
|
SOURCE_URI="https://github.com/baruch/gpart/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="7632da9c91b1f9b0e90a39c10595f934c5e483999bd04f5166a910cf9ea800af"
|
|
SOURCE_FILENAME="gpart-$portVersion-$srcGitRev.tar.gz"
|
|
SOURCE_DIR="gpart-$srcGitRev"
|
|
PATCHES="17.patch
|
|
18.patch
|
|
gpart-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="?all"
|
|
|
|
PROVIDES="
|
|
gpart = $portVersion
|
|
cmd:gpart = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:awk
|
|
cmd:gcc
|
|
cmd:make
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
# fix version
|
|
sed -i 's/0.2.3-dev/0.3-dev/g' configure.ac
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -vfi
|
|
CFLAGS="-D_BSD_SOURCE" runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
}
|