0
0
Fork 0
haikuports/sys-apps/getconf/getconf-0.5.recipe

46 lines
927 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/v0.5.tar.gz"
CHECKSUM_SHA256="8192701051d2a2bf8d1ae7b1c0922c3f1d4a039b9ad99496636b0122667d595c"
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/
}