Package Details: olive-nightly-bin 1:0.2.0_674972831_d75aef40-1

Git Clone URL: https://aur.archlinux.org/olive-nightly-bin.git (read-only, click to copy)
Package Base: olive-nightly-bin
Description: Free non-linear video editor
Upstream URL: https://www.olivevideoeditor.org/
Keywords: nlve
Licenses: GPL3
Conflicts: olive
Provides: olive
Submitter: Curve
Maintainer: C_Schmidpeter
Last Packager: eclairevoyant
Votes: 0
Popularity: 0.000000
First Submitted: 2022-10-29 17:39 (UTC)
Last Updated: 2023-05-02 15:52 (UTC)

Latest Comments

Alkaris commented on 2023-09-06 03:19 (UTC)

You need to fix the PKGBUILD script, it doesn't know where to get the Nightly Binary builds, and expects it to be in the download source. So fix the URL source.

Download links for Nightly binary builds are now fetched from https://olivevideoeditor.org/nightly instead of GitHub.

==> Making package: olive-nightly-bin 1:__-1 (Wed 06 Sep 2023 12:44:06)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> ERROR: olive-nightly-bin-__.zip was not found in the build directory and is not a URL.
:: Unable to build olive-nightly-bin - makepkg exited with code: 1

eclairevoyant commented on 2023-05-02 15:49 (UTC)

Trying to use makepkg with nightly sources is a catastrophe, but this is the best option we have. You might see the curl commands getting executed multiple times, but should be fixed now

ronalde commented on 2023-04-15 21:02 (UTC) (edited on 2023-04-15 21:09 (UTC) by ronalde)

This works; although the early on calling of the pkgver function seems to be a rather ugly hack. I didn't manage to get it working otherwise.

diff --git a/PKGBUILD b/PKGBUILD
index a06d74f..18247d7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,33 @@
 pkgname=olive-nightly-bin
 _pkgname=olive

-pkgver=0.2.0_433645162
-pkgrel=3
+_stablever="0.2.0"
+_bumpstable="1"
+_buildver=""
+_buildid=""
+_buildurl=""
+_buildbase=""
+_buildzip=""
+_buildappimage=""
+
+pkgver() {
+  # requist _buildid (ie. https://olivevideoeditor.org/go.php?id=643416894)
+  _buildid="$(curl "https://olivevideoeditor.org/nightly.php" | grep -Eao "<a[^h]+href='go.php\?id=([[:digit:]]+)'[^>]+>Download</a>" | head -1 | grep -Eo "[[:digit:]]+")"
+  # request a temporary download link using the _buildid; extract the basename for the source zip 
+  _buildurl="$(curl --request POST --url https://www.olivevideoeditor.org/ghret.php --header 'Content-Type: multipart/form-data' --form id="${_buildid}")"
+  # extract basename from POST result: artifactName, ie. "Olive-245a4f6d-Linux-x86_64
+  _buildbase="$(echo "${_buildurl}" | grep -Eo Olive-[^-]+-Linux-x86_64)"
+  # extract version, ie. 245a4f6d
+  _buildver="$(echo "${_buildbase}" | sed -En "s#Olive-([^-]+)-Linux-x86_64#\1#p")"
+  _buildzip="${_buildbase}-clang"
+  _buildappimage="${_buildbase}.AppImage"
+  echo "${_stablever}_${_bumpstable}_${_buildver}"
+}
+
+pkgver >/dev/null
+
+pkgver="${_stablever}_${_bumpstable}_${_buildver}"
+pkgrel=4

 license=('GPL3')
 pkgdesc="Free non-linear video editor"
@@ -18,7 +43,7 @@ makedepends=(unzip patchelf findutils)
 depends=('openexr' 'ffmpeg' 'openimageio' 'opencolorio' 'portaudio' 'qt5-base' 'opentimelineio')

 source=(
-  Olive_$pkgver.AppImage.zip::$(curl --request POST --url https://www.olivevideoeditor.org/ghret.php --header 'Content-Type: multipart/form-data' --form id=$(echo "$pkgver" | grep -o -E "_[[:digit:]]+" | grep -o -E "[[:digit:]]+"))
+  "${_buildzip}::${_buildurl}"
   'olive-editor'
 )

@@ -27,13 +52,10 @@ sha256sums=(
   '2c2d00be80ce1495e9c2ece8be3aae05fe41d7e052420bf04f737419306b014b'
 )

-pkgver() {
-  echo "0.2.0_$( curl "https://olivevideoeditor.org/nightly.php" | grep -o -a -E "<a[^h]+href='go.php\?id=([[:digit:]]+)'[^>]+>Download</a>" | head -1 | grep -o -E "[[:digit:]]+" )"
-}

 prepare() {
-  chmod +x Olive*-x86_64.AppImage
-  ./Olive*-x86_64.AppImage --appimage-extract
+  chmod +x ${_buildappimage}
+  ./${_buildappimage} --appimage-extract
 }

 # RED='\033[0;31m'

C_Schmidpeter commented on 2023-02-15 14:50 (UTC)

Build fails with:

(2/2) Removing obsolete cached package files (keeping the latest two)... ==> no candidate packages found for pruning ==> Retrieving sources... ==> ERROR: Olive_0.2.0_433645162.AppImage.zip was not found in the build directory and is not a URL.

Curve commented on 2022-11-16 10:57 (UTC)

@kIERO Should be fixed now

Curve commented on 2022-11-16 08:52 (UTC)

Thanks @kIERO, will have a look later!

kIERO commented on 2022-11-16 03:14 (UTC)

olive-editor: error while loading shared libraries: libOpenColorIO.so.2.1: cannot open shared object file: No such file or directory

Curve commented on 2022-10-29 18:24 (UTC)

Please don't flag the package a outdated. Re-installing the package will automatically pull the latest version available!