Files
haikuports/haiku-apps/fairtrade/fairtrade-1.0.0~git.recipe
Jerome Duval fc0936b040 Bump revisions for x86_64 rebuild after time_t change.
* a few apps needed build fix for time_t.
* disable compatibility packages for x86_64.
2017-06-27 15:46:25 +02:00

63 lines
1.4 KiB
Bash

SUMMARY="A simple to use point of sale system and product management"
DESCRIPTION="This application is designed for the fair trade group run by the owners \
of www.transfair.org. It supports sellers during trade and products can be \
scanned using a bar code scanner and all of them will be add in the shopping basket"
HOMEPAGE="https://github.com/czeidler/fairtrade"
COPYRIGHT="2006-2013 Clemens Zeidler"
LICENSE="MIT"
REVISION="2"
commit="2b4ff648e2118021b092c4f0d9d0b61bc51c1374"
SOURCE_URI="${HOMEPAGE}/archive/$commit.tar.gz"
CHECKSUM_SHA256="3508410755c1bdf9c90403fd5bbf622f5f6036fe7a787cfe570c6542fd9f4186"
SOURCE_DIR="fairtrade-$commit"
PATCHES="fairtrade-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 !x86 x86_64"
PROVIDES="
fairtrade = $portVersion
app:fairtrade = $portVersion
"
REQUIRES="
haiku
lib:libsqlite3
"
BUILD_REQUIRES="
haiku_devel
devel:libsqlite3
"
BUILD_PREREQUIRES="
makefile_engine
cmd:make
cmd:gcc
"
BUILD()
{
make $jobArgs
cd ConfigApp
make $jobArgs
cd ../Import
make $jobArgs OBJ_DIR=objects
}
INSTALL()
{
mkdir -p $appsDir/fairtrade
cp objects*/fairtrade $appsDir/fairtrade/fairtrade
cp ConfigApp/objects*/config $appsDir/fairtrade/config
cp Import/objects/import $appsDir/fairtrade/import
mkdir $appsDir/fairtrade/pictures
cp -R pictures/* $appsDir/fairtrade/pictures
cp klack $appsDir/fairtrade/klack
addAppDeskbarSymlink $appsDir/fairtrade/fairtrade
}
TEST()
{
make check
}