summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormitchpk2021-05-12 00:14:11 +0930
committermitchpk2021-05-12 00:14:11 +0930
commitffbfbe86dbce5d8c442eb6a656290ee96a89f3af (patch)
tree0dbeb2b924c6f9d74bc4da3f4043e72853182742
downloadaur-ffbfbe86dbce5d8c442eb6a656290ee96a89f3af.tar.gz
first public version of fmodstudio aur package
-rw-r--r--.SRCINFO21
-rw-r--r--LICENSE.html1
-rw-r--r--PKGBUILD93
3 files changed, 115 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..cbb5056b0f07
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = fmodstudio
+ pkgdesc = Desktop application for adaptive audio content creation
+ pkgver = 2.02.00
+ pkgrel = 1
+ url = https://fmod.com
+ arch = x86_64
+ license = custom
+ makedepends = jq
+ depends = alsa-lib
+ depends = libxcursor
+ depends = libxcomposite
+ depends = freetype2
+ depends = nss
+ depends = qt5-declarative
+ depends = hicolor-icon-theme
+ depends = libxtst
+ source = LICENSE.html
+ sha256sums = f828e794ce468d1aa47f1a4436af9fbf2e95eac0e3051c1eefa44ab1a7c9eab8
+
+pkgname = fmodstudio
+
diff --git a/LICENSE.html b/LICENSE.html
new file mode 100644
index 000000000000..3149c09a7411
--- /dev/null
+++ b/LICENSE.html
@@ -0,0 +1 @@
+<div class="container my-5"><h1 class="display-4">Legal Information</h1><p class="lead">Legal information relating to FMOD. Please note that this information may be updated without further notice.</p><hr class="mt-3 mb-5"><h2>END USER LICENCE AGREEMENT</h2><p>This End User Licence Agreement (EULA) is a legal agreement between you and Firelight Technologies Pty Ltd (ACN 099 182 448) (us or we) and governs your use of FMOD Studio and FMOD Engine, together the Software.</p><h4>1. GRANT OF LICENCE</h4><h6>1.1 FMOD Studio</h6><p>This EULA grants you the right to use FMOD Studio, being the desktop application for adaptive audio content creation, for all use, including Commercial use, subject to the following:</p><ol type="i"><li>FMOD Studio is used to create content for use with the FMOD Engine only;</li><li>FMOD Studio is not redistributed in any form.</li></ol><h6>1.2 FMOD Engine</h6><p>This EULA grants you the right to use FMOD Engine, being the runtime engine for adaptive audio playback, without payment, for personal (hobbyist), educational (students and teachers) or Non-Commercial use, subject to the following:</p><ol type="i"><li>FMOD Engine is integrated and redistributed in a software application (Product) only;</li><li>FMOD Engine is not distributed as part of a game engine or tool set;</li><li>FMOD Engine is not used in any Commercial enterprise or for any Commercial production or subcontracting, except for the purposes of Evaluation or Development of a Commercial Product;</li><li>Non-Commercial use does not involve any form of monetisation, sponsorship or promotion;</li><li>Product includes attribution in accordance with Clause 3.</li></ol><p>This EULA also grants you the right to use FMOD Engine, for limited Commercial use, subject to the following:</p><ol type="i"><li>Development budget of the project is less than $500k (Refer to <a href="/licensing#licensing-faq">www.fmod.com/licensing#licensing-faq</a> for information);</li><li>Total gross revenue / funding per year for the developer, before expenses, is less than $200k (Refer to <a href="/licensing#licensing-faq">www.fmod.com/licensing#licensing-faq</a> for information);</li><li>FMOD Engine is integrated and redistributed in a game application (Product) only;</li><li>FMOD Engine is not distributed as part of a game engine or tool set;</li><li>Project is registered in your profile page at <a href="/profile#projects">www.fmod.com/profile#projects</a>;</li><li>Product includes attribution in accordance with Clause 3.</li></ol><h6>1.3 FMOD example code and media</h6><p>This EULA grants you the right to use FMOD example code, being all or snippets of source code files located in the FMOD API examples folder and scripting examples in the documentation, for all use, including Commercial use, subject to the following:</p><ol type="i"><li>Media files included in FMOD examples, including wav, ogg, mp3, fsb and bank files, are not to be redistributed.</li></ol><h4>2. OTHER USE</h4><p>For any Commercial use or Non Commercial use not permitted by this license, a separate license is required. Refer to <a href="/licensing">www.fmod.com/licensing</a> for information.</p><h4>3. CREDITS</h4><p>All Products require an in game credit line which must include the words “FMOD Studio” and “Firelight Technologies Pty Ltd”. Refer to <a href="/attribution">www.fmod.com/attribution</a> for examples.</p><h4>4. INTELLECTUAL PROPERTY RIGHTS</h4><p>We are and remain at all times the owner of the Software (including all intellectual property rights in or to the Software). For the avoidance of doubt, nothing in this EULA may be deemed to grant or assign to you any proprietary or ownership interest or intellectual property rights in or to the Software other than the rights licensed pursuant to Clause 1.</p><p>You acknowledge and agree that you have no right, title or interest in and to the intellectual property rights in the Software.</p><h4>5. SECURITY AND RISK</h4><p>You are responsible for protecting the Software and any related materials at all times from unauthorised access, use or damage.</p><h4>6. WARRANTY AND LIMITATION OF LIABILITY</h4><p>The Software is provided by us “as is” and, to the maximum extent permitted by law, any express or implied warranties of any kind, including (but not limited to) all implied warranties of merchantability and fitness for a particular purpose are disclaimed.</p><p>In no event shall we (and our employees, contractors and subcontractors), developers and contributors be liable for any direct, special, indirect or consequential damages whatsoever resulting from loss of data or profits, whether in an action of contract, negligence or other tortious conduct, arising out of or in connection with the use or performance of the Software.</p><h4>7. OGG VORBIS CODEC</h4><p>FMOD uses the Ogg Vorbis codec © 2002, Xiph.Org Foundation.</p><p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p><ol type="i"><li>Redistributions of source code must retain the above copyright notice, the list of conditions and the following disclaimer.</li><li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other material provided with the distribution.</li><li>Neither the name of the Xiph.org Foundation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</li></ol><p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p><h4>8. RESONANCE AUDIO SDK</h4><p>FMOD includes Resonance Audio SDK, licensed under the Apache Licence, Version 2.0 (the Licence); you may not use this file except in compliance with the License. You may obtain a copy of the License at:</p><p><a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a></p><p>Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.</p><h4>8. ANDROID PLATFORM CODE</h4><p>Copyright (C) 2010 The Android Open Source Project All rights reserved.</p><p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p><ul><li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li><li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li></ul><p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p><h4>9. AUDIOMOTORS DEMO CONTENT</h4><p>The audiogaming_audiomotors_demo_engine.agp file is provided for evaluation purposes only and is not to be redistributed. AudioMotors V2 Pro is required to create your own engine content. Refer to <a href="https://lesound.io">https://lesound.io</a> for information.</p></div>
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..9880064b9cd2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,93 @@
+# Maintainer: mitchpk <kphctim at gmail dot com>
+# Thanks to https://aur.archlinux.org/packages/factorio/ for authentication code
+
+pkgname=fmodstudio
+pkgver=2.02.00
+pkgrel=1
+pkgdesc="Desktop application for adaptive audio content creation"
+arch=('x86_64')
+url="https://fmod.com"
+license=('custom')
+depends=('alsa-lib' 'libxcursor' 'libxcomposite' 'freetype2' 'nss' 'qt5-declarative' 'hicolor-icon-theme' 'libxtst')
+source=('LICENSE.html')
+sha256sums=('f828e794ce468d1aa47f1a4436af9fbf2e95eac0e3051c1eefa44ab1a7c9eab8')
+makedepends=('jq')
+_filename=fmodstudio20200linux64-installer.deb
+
+build() {
+ echo "Downloading FMOD Studio requires an FMOD.com account"
+ local file="${SRCDEST}/${_filename}"
+ local username=$FMOD_LOGIN
+ local password=$FMOD_PASSWORD
+ local token
+ local completed=0
+
+ while [[ $completed -eq 0 ]]; do
+ if [[ -z $username || -z $password ]]; then
+ [[ ! -t 0 ]] && return 1
+ echo "Please enter your username/email and password"
+ read -rp "Username or email: " username
+ [[ -z $username ]] && continue
+
+ read -rsp "Password: " password; echo
+ [[ -z $password ]] && continue
+ fi
+
+ echo "Logging in..."
+
+ local output
+ if output=$(curl --silent -X POST https://fmod.com/api-login --user $username:$password
+ ) && token=$(echo "$output" | jq -r '.token | strings') && [[ -n $token ]]
+ then
+ echo "Successfully authenticated with token"
+ else
+ echo "Login failed"
+
+ [[ ! -t 0 ]] && return 1
+ read -n1 -p "Retry login? (Y/n) " try_again ; echo
+ if [[ "${try_again,,*}" == "n" ]]; then
+ return 1
+ else
+ continue
+ fi
+ fi
+
+ echo "Downloading $_filename..."
+ if output=$(curl -G "https://fmod.com/api-get-download-link" \
+ --data-urlencode path="files/fmodstudio/tool/Linux/" \
+ --data-urlencode filename="$_filename" \
+ -H "Authorization: FMOD $token") &&
+ downloadurl=$(echo "$output" | jq -r '.url | strings') && [[ -n $downloadurl ]]
+ then
+ code=$(curl -G --retry 10 --retry-delay 3 \
+ --fail --location \
+ --continue-at - \
+ --output "${file}.part" \
+ "$downloadurl" \
+ --write-out '%{http_code}'
+ ) || rm -f "${file}.part"
+
+ if [[ ! -f "${file}.part" ]]; then
+ echo "Download failed"
+ return 1
+ fi
+
+ echo "Download successful"
+ mv "${file}"{.part,}
+ completed=1
+ else
+ echo "Failed to fetch download link"
+ return 1
+ fi
+ done
+}
+
+package() {
+ echo "Unpacking..."
+ ar p "${SRCDEST}/${_filename}" data.tar.xz | tar -C "${pkgdir}" -Jx
+ install -d "${pkgdir}/usr/bin"
+ ln -s /opt/fmodstudio/fmodstudio "${pkgdir}/usr/bin"
+ ln -s /opt/fmodstudio/fmodstudiocl "${pkgdir}/usr/bin"
+
+ install -Dm644 LICENSE.html "$pkgdir/usr/share/licenses/$pkgname/LICENSE.html"
+}