1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/photoview_ynh.git synced 2024-09-03 20:05:55 +02:00

Merge pull request #83 from YunoHost-Apps/ci-auto-update-sources-240610

Upgrade sources
This commit is contained in:
Salamandar 2024-06-10 23:42:32 +02:00 committed by GitHub
commit 825f1dbb66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 12 deletions

View file

@ -55,8 +55,8 @@ ram.runtime = "200M"
autoupdate.strategy = "latest_github_release"
[resources.sources.libheif]
url = "https://github.com/strukturag/libheif/releases/download/v1.12.0/libheif-1.12.0.tar.gz"
sha256 = "e1ac2abb354fdc8ccdca71363ebad7503ad731c84022cf460837f0839e171718"
url = "https://github.com/strukturag/libheif/releases/download/v1.17.6/libheif-1.17.6.tar.gz"
sha256 = "8390baf4913eda0a183e132cec62b875fb2ef507ced5ddddc98dfd2f17780aee"
autoupdate.strategy = "latest_github_release"
autoupdate.upstream = "https://github.com/strukturag/libheif"
@ -102,8 +102,8 @@ ram.runtime = "200M"
"libheif-dev",
"build-essential",
"pkg-config",
"autoconf",
"automake",
"cmake",
"ninja-build",
"libx265-dev",
"libde265-dev",
"libaom-dev",

View file

@ -29,14 +29,15 @@ function build_libheif {
export GOCACHE="$install_dir/build/.cache"
pushd "$install_dir/libheif" || ynh_die
# mkdir -p "$install_dir/local"
# chown -R $app:$app "$install_dir/local"
ynh_exec_as "$app" ./autogen.sh 2>&1
ynh_exec_as "$app" ./configure --prefix="$install_dir/local" --disable-gdk-pixbuf 2>&1
ynh_exec_as "$app" make clean 2>&1
ynh_exec_as "$app" make 2>&1
ynh_exec_as "$app" make install 2>&1
ynh_exec_as "$app" make clean 2>&1
ynh_exec_as "$app" mkdir build
pushd build
ynh_exec_and_print_stderr_only_if_error ynh_exec_as "$app" \
cmake --preset=release -DCMAKE_INSTALL_PREFIX="$install_dir/local" -DWITH_GDK_PIXBUF=OFF -G Ninja ..
ynh_exec_and_print_stderr_only_if_error ynh_exec_as "$app" \
ninja
ynh_exec_and_print_stderr_only_if_error ynh_exec_as "$app" \
ninja install
popd
popd || ynh_die
}