Package Details: libavif-git 1.0.4.r476.gf56a1f18-1

Git Clone URL: https://aur.archlinux.org/libavif-git.git (read-only, click to copy)
Package Base: libavif-git
Description: Library for encoding and decoding .avif files
Upstream URL: https://github.com/AOMediaCodec/libavif
Licenses: BSD-2-Clause
Conflicts: libavif
Provides: libavif
Submitter: Chocobo1
Maintainer: Chocobo1
Last Packager: Chocobo1
Votes: 2
Popularity: 0.000000
First Submitted: 2020-08-16 05:04 (UTC)
Last Updated: 2024-04-25 17:48 (UTC)

Required by (39)

Sources (1)

Latest Comments

sommio commented on 2024-04-25 16:12 (UTC) (edited on 2024-04-25 17:32 (UTC) by sommio)

--sharpyuv still doesn't work, fix it.

diff --git a/.SRCINFO b/.SRCINFO
index 85112ab..1a0d67f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,11 @@
 pkgbase = libavif-git
    pkgdesc = Library for encoding and decoding .avif files
-   pkgver = 1.0.4.r472.gb2ecd8e4
+   pkgver = 1.0.4.r476.gf56a1f18
    pkgrel = 1
    url = https://github.com/AOMediaCodec/libavif
    arch = i686
    arch = x86_64
-   license = BSD-2-Clause
+   license = LicenseRef-libavif
    makedepends = git
    makedepends = cmake
    makedepends = nasm
@@ -14,12 +14,13 @@ pkgbase = libavif-git
    depends = glibc
    depends = aom
    depends = dav1d
-   depends = libjpeg
-   depends = libpng
    depends = librav1e.so
-   depends = libyuv
    depends = svt-av1
-   provides = libavif=1.0.4.r472.gb2ecd8e4
+   depends = libpng
+   depends = libjpeg
+   depends = libyuv
+   depends = libsharpyuv.so
+   provides = libavif=1.0.4.r476.gf56a1f18
    conflicts = libavif
    source = git+https://github.com/AOMediaCodec/libavif.git
    sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 67ec34e..6986a35 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,21 @@
 # Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

 pkgname=libavif-git
-pkgver=1.0.4.r472.gb2ecd8e4
+pkgver=1.0.4.r476.gf56a1f18
 pkgrel=1
 pkgdesc="Library for encoding and decoding .avif files"
 arch=('i686' 'x86_64')
 url="https://github.com/AOMediaCodec/libavif"
-license=('BSD-2-Clause')
-depends=('glibc' 'aom' 'dav1d' 'libjpeg' 'libpng' 'librav1e.so' 'libyuv' 'svt-av1')
+license=(LicenseRef-libavif)
+depends=('glibc' 'aom' 'dav1d' 'librav1e.so' 'svt-av1' 'libpng' 'libjpeg' 'libyuv' 'libsharpyuv.so')
 makedepends=('git' 'cmake' 'nasm' 'pkgconf' 'gdk-pixbuf2')
 provides=("libavif=$pkgver")
 conflicts=('libavif')
 source=("git+https://github.com/AOMediaCodec/libavif.git")
 sha256sums=('SKIP')

-
 pkgver() {
-  cd "libavif"
+  cd ${pkgname%-git}

   _tag=$(git tag -l --sort -v:refname | grep -E '^v?[0-9\.]+$' | head -n1)
   _rev=$(git rev-list --count $_tag..HEAD)
@@ -25,26 +24,24 @@ pkgver() {
 }

 build() {
-  cd "libavif"
-
-  cmake \
-    -B "_build" \
+  cmake -B build -S ${pkgname%-git} \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_PREFIX="/usr" \
     -DCMAKE_INSTALL_LIBDIR="lib" \
     -DAVIF_BUILD_APPS=ON \
+    -DAVIF_BUILD_GDK_PIXBUF=ON \
     -DAVIF_CODEC_AOM=SYSTEM \
     -DAVIF_CODEC_DAV1D=SYSTEM \
     -DAVIF_CODEC_RAV1E=SYSTEM \
     -DAVIF_CODEC_SVT=SYSTEM \
-    -DAVIF_BUILD_GDK_PIXBUF=ON \
-    ./
-  cmake --build "_build"
+    -DAVIF_JPEG=SYSTEM \
+    -DAVIF_ZLIBPNG=SYSTEM \
+    -DAVIF_LIBYUV=SYSTEM \
+    -DAVIF_LIBSHARPYUV=SYSTEM
+  make -C build
 }

 package() {
-  cd "libavif"
-
-  DESTDIR="$pkgdir" cmake --install "_build"
-  install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/libavif"
+  make -C build DESTDIR="${pkgdir}" install
+  install -Dm644 ${pkgname%-git}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
 }

simona commented on 2021-01-20 20:08 (UTC)

/home/simona/.cache/yay/libavif-git/src/libavif/src/codec_rav1e.c:6:10: fatal error: rav1e.h: File o directory non esistente

simona commented on 2021-01-19 19:47 (UTC)

libavif-git/src/libavif/src/codec_rav1e.c:6:10: fatal error: rav1e.h: File o directory non esistente
6 | #include "rav1e.h"
| ^~~~~~~~~
compilation terminated.
i have problem with darktable
darktable: symbol lookup error: /usr/lib/libavif.so.9: undefined symbol: svt_av1_enc_init

linkmauve commented on 2020-08-15 18:58 (UTC)

Now that libavif is in ArchLinux, you should probably file a request to rename this package to libavif-git.

Chocobo1 commented on 2020-06-23 04:40 (UTC)

Hi, could you build it with -DAVIF_BUILD_APPS=ON now? It will allow all GTK+ programs as well as every program using gdk-pixbuf to use AVIF files. :)

I suppose you meant DAVIF_BUILD_GDK_PIXBUF=ON? Sure and done.

linkmauve commented on 2020-06-22 21:34 (UTC) (edited on 2020-06-22 21:34 (UTC) by linkmauve)

Hi, could you build it with -DAVIF_BUILD_APPS=ON now? It will allow all GTK+ programs as well as every program using gdk-pixbuf to use AVIF files. :)

See https://github.com/AOMediaCodec/libavif/pull/182