mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
72 lines
2.4 KiB
Bash
72 lines
2.4 KiB
Bash
SUMMARY="A GUI based installer for FPC and Lazarus"
|
|
DESCRIPTION="Fpcup, fpclazup and fpcupdeluxe are basically wrappers around svn/make on steroids.
|
|
They try to use the FPC/Lazarus build process as much as possible.
|
|
Fcpupdeluxe is the latest addition that adds a GUI to ease its use.
|
|
|
|
Meant to be used side by side with other FPC/Lazarus installations. It creates a separate primary \
|
|
config path directory for the new Lazarus installation, so it doesn't interfere with existing \
|
|
Lazarus installs.
|
|
|
|
It's open source software released under the LGPL with linking exception (same as FreePascal), \
|
|
and contains some open source libraries with their own license.
|
|
See source files for details. All use permitted, also commercial, but no warranties, express or \
|
|
implied."
|
|
HOMEPAGE="https://github.com/LongDirtyAnimAlf/fpcupdeluxe/"
|
|
COPYRIGHT="2014 Reinier Olislagers / DonAlfredo"
|
|
LICENSE="GNU LGPL v3
|
|
MIT"
|
|
REVISION="1"
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
BINARY_ARCH=i386
|
|
CHECKSUM_SHA256="d66e85f11c83ad0efbdc582b1ee428fa669a8e130913ed84c37e2721ac917d0e"
|
|
else
|
|
BINARY_ARCH=x86_64
|
|
CHECKSUM_SHA256="b05f30638acf72135fa8ccd34b2b0c283fddbae9e473a9ac836242415172e098"
|
|
fi
|
|
SOURCE_URI="$HOMEPAGE/releases/download/v${portVersion/\~/}/fpcupdeluxe-$BINARY_ARCH-haiku-qt5.zip"
|
|
SOURCE_DIR="fpcupdeluxe-$BINARY_ARCH-haiku-qt5"
|
|
ADDITIONAL_FILES="fpcupdeluxe.rdef.in
|
|
install_fpcupdeluxe.sh
|
|
"
|
|
|
|
ARCHITECTURES="x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
POST_INSTALL_SCRIPTS="$relativePostInstallDir/install_fpcupdeluxe.sh"
|
|
|
|
PROVIDES="
|
|
fpcupdeluxe$secondaryArchSuffix = $portVersion
|
|
cmd:fpcupdeluxe = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libQt5pas$secondaryArchSuffix
|
|
"
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $prefix/bin $postInstallDir
|
|
|
|
cp $sourceDir/fpcupdeluxe-$BINARY_ARCH-haiku-qt5 $prefix/bin/fpcupdeluxe
|
|
chmod +x $prefix/bin/fpcupdeluxe
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3 | cut -d~ -f1`"
|
|
local LONG_INFO="$SUMMARY"
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/fpcupdeluxe.rdef.in > fpcupdeluxe.rdef
|
|
|
|
addResourcesToBinaries fpcupdeluxe.rdef \
|
|
$prefix/bin/fpcupdeluxe
|
|
|
|
cp $portDir/additional-files/install_fpcupdeluxe.sh $postInstallDir
|
|
|
|
installDir="$(finddir B_USER_NONPACKAGED_DIRECTORY)/bin/"
|
|
addAppDeskbarSymlink $installDir/FPCUPdeluxe
|
|
}
|