mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
AQEMU: add recipe for version 0.9.2
* disabled as it can't find its resources and generally needs a bit of work
This commit is contained in:
82
app-emulation/aqemu/aqemu-0.9.2.recipe
Normal file
82
app-emulation/aqemu/aqemu-0.9.2.recipe
Normal file
@@ -0,0 +1,82 @@
|
||||
SUMMARY="A GUI for virtual machines using QEMU as the backend"
|
||||
DESCRIPTION="AQEMU is a Qt5 graphical interface used to manage QEMU and KVM \
|
||||
virtual machines. It has a user-friendly interface and allows one to set up \
|
||||
the majority of QEMU and KVM options."
|
||||
HOMEPAGE="https://github.com/tobimensch/aqemu/"
|
||||
COPYRIGHT="2008-2017 Andrey Rijov"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/tobimensch/aqemu/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="e3d54de00ebdce3754f97f7e0e7cce8cebb588e8ce6bc249401cc909281b08de"
|
||||
PATCHES="aqemu-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="aqemu.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
aqemu$secondaryArchSuffix = $portVersion
|
||||
app:AQEMU$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
qemu$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5PrintSupport$secondaryArchSuffix
|
||||
lib:libQt5Test$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
lib:libvncclient$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libvncserver$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5PrintSupport$secondaryArchSuffix
|
||||
devel:libQt5Test$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake $cmakeDirArgs ..
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
mkdir -p $appsDir/AQEMU
|
||||
mv $prefix/bin/aqemu $appsDir/AQEMU/AQEMU
|
||||
mv $prefix/share/aqemu/* $appsDir/AQEMU
|
||||
rm -rf $binDir $prefix/share
|
||||
|
||||
# Add Haiku resources
|
||||
local APP_SIGNATURE="application/x-vnd.qt5-aqemu"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
$portDir/additional-files/aqemu.rdef.in > aqemu.rdef
|
||||
|
||||
addResourcesToBinaries aqemu.rdef $appsDir/AQEMU/AQEMU
|
||||
addAppDeskbarSymlink $appsDir/AQEMU/AQEMU
|
||||
}
|
||||
Reference in New Issue
Block a user