89 lines
2.5 KiB
Bash
89 lines
2.5 KiB
Bash
SUMMARY="Design Schematics and PCBs"
|
|
DESCRIPTION="LibrePCB is a free EDA software to develop printed circuit boards.
|
|
|
|
Key Features:
|
|
* Cross-platform (Unix/Linux, Mac OS X, Windows)
|
|
* All-in-one (project management, library/schematic/board editors)
|
|
* Intuitive, modern and easy-to-use graphical user interface
|
|
* Very powerful library design with some innovative concepts
|
|
* Human-readable file formats
|
|
* Open Source (GNU GPLv3)"
|
|
HOMEPAGE="https://librepcb.org/"
|
|
COPYRIGHT="Urban Bruhin"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.librepcb.org/releases/$portVersion/librepcb-$portVersion-source.zip"
|
|
CHECKSUM_SHA256="f956dfa5b9ad1faffcab7f5dd03f158c2b97a7c82cfc9a09dc4066cbcf0db76a"
|
|
SOURCE_DIR="librepcb-$portVersion"
|
|
PATCHES="librepcb-$portVersion.patchset"
|
|
ADDITIONAL_FILES="librepcb.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
librepcb$secondaryArchSuffix = $portVersion
|
|
app:LibrePCB$secondaryArchSuffix = $portVersion
|
|
cmd:librepcb_cli = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:lrelease$secondaryArchSuffix >= 5
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:qmake$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build
|
|
cd build
|
|
|
|
qmake ../librepcb.pro \
|
|
PREFIX=$appsDir/LibrePCB
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
mkdir -p $prefix/bin
|
|
mv $appsDir/LibrePCB/bin/librepcb $appsDir/LibrePCB/bin/LibrePCB
|
|
ln -s $appsDir/LibrePCB/bin/librepcb-cli $prefix/bin
|
|
ln -s $appsDir/LibrePCB/bin/LibrePCB $appsDir/LibrePCB/LibrePCB
|
|
|
|
local APP_SIGNATURE="application/x-vnd.librepcb"
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
local LONG_INFO="$SUMMARY"
|
|
sed \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/librepcb.rdef.in > $sourceDir/librepcb.rdef
|
|
|
|
addResourcesToBinaries $sourceDir/librepcb.rdef $appsDir/LibrePCB/bin/LibrePCB
|
|
addAppDeskbarSymlink $appsDir/LibrePCB/bin/LibrePCB LibrePCB
|
|
}
|