beohms: added recipe (GCI 2016) (#1030)

Added recipe for BeOhms Ohm's Law calculator.
This commit is contained in:
Tudor Nazarie
2017-01-10 21:53:12 +02:00
committed by fbrosson
parent 3350d6eb0e
commit 6ad1e27147

View File

@@ -0,0 +1,47 @@
SUMMARY="Ohm's Law calculator"
DESCRIPTION="BeOhms is a calculator that is based of of Ohm's Law. This \
calculator solves either voltage, resistance, or current, given two of the \
variables."
HOMEPAGE="https://github.com/HaikuArchives/BeOhms"
COPYRIGHT="1999 Kyle Crane"
LICENSE="Public Domain"
REVISION="1"
commit="dfdb28d7282aba7d7d616460e85692e68e27a762"
SOURCE_URI="https://github.com/HaikuArchives/BeOhms/archive/$commit.tar.gz"
CHECKSUM_SHA256="a2f414d54a94c8f84b2350097d6e48e93777266122272f80614a09b9c8c9f2fc"
SOURCE_FILENAME="BeOhms-$commit.tar.gz"
SOURCE_DIR="BeOhms-$commit"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
beohms = $portVersion
app:BeOhms = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:gcc
cmd:ld
cmd:make
"
BUILD()
{
cd src
mkdir -p bin
make $jobArgs TARGET_DIR=bin
}
INSTALL()
{
install -d $appsDir
install -t $appsDir src/bin/BeOhms
addAppDeskbarSymlink $appsDir/BeOhms
}