mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-02 13:08:53 +02:00
89 lines
2.4 KiB
Bash
89 lines
2.4 KiB
Bash
SUMMARY="Free open-source video editor"
|
|
DESCRIPTION="Openshot can take your videos, photos, and music files and help \
|
|
you create the film you always dreamed of. Easily add sub-titles, transitions,\
|
|
and effects, then export your film to DVD, YouTube, Vimeo, Xbox 360, and many\
|
|
other common formats."
|
|
HOMEPAGE="https://www.openshot.org"
|
|
COPYRIGHT="2008-2020 OpenShot Studios, LLC"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/OpenShot/openshot-qt/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="4c25eb9a5de42e749de4c6ca2f7a313c60e1283fe52d70c121629dbb8bb2df7b"
|
|
SOURCE_FILENAME="openshot-$portVersion.tar.gz"
|
|
SOURCE_DIR="openshot-qt-$portVersion"
|
|
PATCHES="openshot-$portVersion.patchset"
|
|
ADDITIONAL_FILES="openshot.rdef.in"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PYTHON_VERSION="3.8"
|
|
|
|
PROVIDES="
|
|
openshot$secondaryArchSuffix = $portVersion
|
|
app:OpenShot$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
httplib2_python38
|
|
libopenshot_python38
|
|
pyqt5_python38
|
|
pyzmq_python38
|
|
requests_python38
|
|
setuptools_python38
|
|
cmd:python$PYTHON_VERSION
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
libopenshot_python38
|
|
pyqt5_python38
|
|
setuptools_python38
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:python$PYTHON_VERSION
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
true
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
# Add Haiku resources
|
|
local APP_SIGNATURE="application/x-vnd.openshot"
|
|
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/openshot.rdef.in \
|
|
> openshot.rdef
|
|
# GENERIC: all python_setuptools-based installs need this
|
|
python=$portPackageLinksDir/cmd~python${PYTHON_VERSION}/bin/python${PYTHON_VERSION}
|
|
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
|
|
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
|
|
export PYTHONPATH=$installLocation:$PYTHONPATH
|
|
mkdir -p $installLocation $appsDir
|
|
|
|
$python setup.py install --prefix=$prefix
|
|
|
|
mv $binDir/openshot-qt $appsDir/OpenShot
|
|
rm -rf $binDir
|
|
|
|
settype -t application/x-vnd.Be-elfexecutable \
|
|
$appsDir/OpenShot
|
|
|
|
# Installing extra-attribs
|
|
rc openshot.rdef
|
|
resattr -o $appsDir/OpenShot \
|
|
openshot.rsrc
|
|
|
|
addAppDeskbarSymlink $appsDir/OpenShot
|
|
}
|