PKGBUILDs/extra/libavif/PKGBUILD
2024-01-25 14:13:36 +00:00

34 lines
1,019 B
Bash

# Maintainer: Bruno Pagani <archange@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - remove depends on svt-av1
# - set -DAVIF_CODEC_SVT=OFF
pkgname=libavif
pkgver=1.0.3
pkgrel=2
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)
makedepends=(cmake nasm pkgconf gdk-pixbuf2)
source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('35e3cb3cd7158209dcc31d3bf222036de5b9597e368a90e18449ecc89bb86a19')
build() {
cmake -B build -S ${pkgname}-${pkgver} \
-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_BUILD_GDK_PIXBUF=ON
make -C build
}
package() {
make -C build DESTDIR="${pkgdir}" install
install -Dm644 ${pkgname}-${pkgver}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
}