2020-12-22 04:10:43 +00:00
|
|
|
# Maintainer: Bruno Pagani <archange@archlinux.org>
|
2024-04-26 00:26:53 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
2020-12-22 04:10:43 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - remove depends on svt-av1
|
|
|
|
# - set -DAVIF_CODEC_SVT=OFF
|
2024-06-29 23:30:51 +00:00
|
|
|
# - remove makedepends on pandoc-cli, don't set -DAVIF_BUILD_MAN_PAGES=ON
|
2020-12-22 04:10:43 +00:00
|
|
|
|
|
|
|
pkgname=libavif
|
2024-07-31 10:25:46 +00:00
|
|
|
pkgver=1.1.1
|
2024-09-17 13:13:00 +00:00
|
|
|
pkgrel=2
|
2020-12-22 04:10:43 +00:00
|
|
|
pkgdesc="Library for encoding and decoding .avif files"
|
|
|
|
arch=(x86_64)
|
|
|
|
url="https://github.com/AOMediaCodec/libavif"
|
2024-01-25 14:13:36 +00:00
|
|
|
license=(LicenseRef-libavif)
|
2024-09-17 13:13:00 +00:00
|
|
|
depends=(glibc aom dav1d librav1e.so libpng libjpeg-turbo libyuv libwebp)
|
2024-06-29 23:30:51 +00:00
|
|
|
makedepends=(cmake
|
|
|
|
gdk-pixbuf2
|
2024-07-11 18:51:04 +00:00
|
|
|
git
|
2024-06-29 23:30:51 +00:00
|
|
|
nasm)
|
2024-07-11 18:51:04 +00:00
|
|
|
source=(git+https://github.com/AOMediaCodec/libavif#tag=v$pkgver)
|
2024-07-31 10:25:46 +00:00
|
|
|
sha256sums=('2868a336117886bd3b4094e8c48589e67152ae8f39b06c067f8c51ec2709f577')
|
2020-12-22 04:10:43 +00:00
|
|
|
|
|
|
|
build() {
|
2024-07-11 18:51:04 +00:00
|
|
|
cmake -B build -S $pkgname \
|
2020-12-22 04:10:43 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DAVIF_BUILD_APPS=ON \
|
|
|
|
-DAVIF_CODEC_AOM=ON \
|
|
|
|
-DAVIF_CODEC_DAV1D=ON \
|
|
|
|
-DAVIF_CODEC_RAV1E=ON \
|
|
|
|
-DAVIF_CODEC_SVT=OFF \
|
2024-07-11 18:51:04 +00:00
|
|
|
-DAVIF_LIBSHARPYUV=SYSTEM \
|
2020-12-22 04:10:43 +00:00
|
|
|
-DAVIF_BUILD_GDK_PIXBUF=ON
|
|
|
|
make -C build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-07-11 18:51:04 +00:00
|
|
|
make -C build DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 $pkgname/LICENSE -t "${pkgdir}"/usr/share/licenses/$pkgname
|
2020-12-22 04:10:43 +00:00
|
|
|
}
|