Files
haikuports/sys-apps/getconf/getconf-0.6.recipe
2023-04-24 09:09:50 +02:00

45 lines
950 B
Bash

SUMMARY="Prints out values of POSIX configuration variables"
DESCRIPTION="The getconf command prints values of system configuration \
variables. It is a command interface to the values returned by sysconf(), \
confstr(), and pathconf()."
HOMEPAGE="https://github.com/termux/getconf"
COPYRIGHT="1996, 1998 The NetBSD Foundation, Inc.
2017, Fredrik Fornwall"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/termux/getconf/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="ca6808fe1a936426d0b4ef05001dfbaedcf35159bec961732a1732e280e27caa"
ARCHITECTURES="all"
PROVIDES="
getconf = $portVersion
cmd:getconf = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:awk
cmd:gcc
cmd:make
"
BUILD()
{
make $jobArgs CFLAGS=-D_BSD_SOURCE LDFLAGS=-lbsd
}
INSTALL()
{
mkdir -p $manDir/man1
mkdir -p $binDir
install -m 644 getconf.1 $manDir/man1/
install getconf $binDir/
}