Merged in bbjimmy/haikuports (pull request #473)

Add cal command recipe
This commit is contained in:
Scott McCreary
2015-01-18 11:23:58 -08:00

View File

@@ -0,0 +1,43 @@
SUMMARY="Program for calculating and printing calendars"
DESCRIPTION="
Cal is a command line tool for printing a calendar in a Terminal. This is the version that was originally included in Haiku. Cal was replaced by gcal as it is better with some fonts and language locals. Cal is presented here for those who need the old version for script compatability.
"
HOMEPAGE=""
SRC_URI="https://github.com/bbjimmy/cal/archive/v1.0.tar.gz"
CHECKSUM_SHA256="b22faa43afca781939811cfd99b99c1e7a8df5c0896040a0d69bc7b38546fd88"
SOURCE_DIR="cal-1.0"
LICENSE="BSD (4-clause)"
REVISION="1"
COPYRIGHT="1989, 1993, 1994 The Regents of the University of California."
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
cal = $portVersion
cmd:cal
"
REQUIRES="
haiku
"
BUILD_PREREQUIRES="
cmd:gcc
"
BUILD_REQUIRES="
haiku_devel
"
BUILD()
{
gcc cal.c
}
INSTALL()
{
mkdir -p $binDir
cp cal $binDir/cal
}