Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: haikuports/haikuports
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a0f6e7c114cc
Choose a base ref
...
head repository: haikuports/haikuports
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 61031867ad47
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jul 22, 2021

  1. Copy the full SHA
    6103186 View commit details
Showing with 74 additions and 0 deletions.
  1. +74 −0 sci-electronics/savvycan/savvycan-1.0.245.recipe
74 changes: 74 additions & 0 deletions sci-electronics/savvycan/savvycan-1.0.245.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
SUMMARY="Qt based cross-platform canbus tool"
DESCRIPTION="SavvyCAN is a cross-platform tool to capture, analyze, and \
reverse engineer CAN bus data."
HOMEPAGE="https://savvycan.com/"
COPYRIGHT="
2015-2021 EVTV and Collin Kidder
"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/collin80/SavvyCAN/archive/refs/tags/$portVersion.tar.gz"
SOURCE_DIR="SavvyCAN-$portVersion"
CHECKSUM_SHA256="347c6bf143ba09e6002068f7484d13179f54bef4a077980eafd4a3c06f0e18bf"

ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
savvycan$secondaryArchSuffix = $portVersion
cmd:SavvyCAN
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt5Concurrent$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5DBus$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5Test$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"

BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt5Concurrent$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libQt5DBus$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Network$secondaryArchSuffix
devel:libQt5Test$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:qmake$secondaryArchSuffix >= 5
cmd:make
cmd:gcc
cmd:g++
"

BUILD()
{
mkdir -p build ; cd build
qmake ..

make $jobArgs
}

INSTALL()
{
cd build

mkdir -p $appsDir/SavvyCAN
mkdir -p $appsDir/SavvyCAN/help

cp SavvyCAN $appsDir/SavvyCAN/SavvyCAN
cp -R ../help/* $appsDir/SavvyCAN/help

addAppDeskbarSymlink $appsDir/SavvyCAN/SavvyCAN
}

TEST()
{
cd build
make test
}