PKGBUILDs/extra/libavif/PKGBUILD
2024-07-11 14:51:04 -04:00

40 lines
1.2 KiB
Bash

# Maintainer: Bruno Pagani <archange@archlinux.org>
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - remove depends on svt-av1
# - set -DAVIF_CODEC_SVT=OFF
# - remove makedepends on pandoc-cli, don't set -DAVIF_BUILD_MAN_PAGES=ON
pkgname=libavif
pkgver=1.1.0
pkgrel=1
pkgdesc="Library for encoding and decoding .avif files"
arch=(x86_64)
url="https://github.com/AOMediaCodec/libavif"
license=(LicenseRef-libavif)
depends=(glibc aom dav1d librav1e.so libpng libjpeg libyuv libwebp)
makedepends=(cmake
gdk-pixbuf2
git
nasm)
source=(git+https://github.com/AOMediaCodec/libavif#tag=v$pkgver)
sha256sums=('e80ea1d88d8036f3531aabf8390c45120bf8b7c393a4190fb2c63fea9cb52f06')
build() {
cmake -B build -S $pkgname \
-DCMAKE_INSTALL_PREFIX=/usr \
-DAVIF_BUILD_APPS=ON \
-DAVIF_CODEC_AOM=ON \
-DAVIF_CODEC_DAV1D=ON \
-DAVIF_CODEC_RAV1E=ON \
-DAVIF_CODEC_SVT=OFF \
-DAVIF_LIBSHARPYUV=SYSTEM \
-DAVIF_BUILD_GDK_PIXBUF=ON
make -C build
}
package() {
make -C build DESTDIR="$pkgdir" install
install -Dm644 $pkgname/LICENSE -t "${pkgdir}"/usr/share/licenses/$pkgname
}