2020-12-22 04:10:43 +00:00
|
|
|
# Maintainer: Bruno Pagani <archange@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - remove depends on svt-av1
|
|
|
|
# - set -DAVIF_CODEC_SVT=OFF
|
|
|
|
|
|
|
|
pkgname=libavif
|
2021-03-08 18:59:16 +00:00
|
|
|
pkgver=0.9.0
|
|
|
|
pkgrel=1
|
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"
|
|
|
|
license=(BSD)
|
|
|
|
depends=(glibc aom dav1d rav1e zlib libpng libjpeg libyuv)
|
|
|
|
makedepends=(cmake nasm pkgconf gdk-pixbuf2)
|
|
|
|
source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
|
2021-03-08 18:59:16 +00:00
|
|
|
sha256sums=('ea1603fc18e7dd20cf01f0b405156576886ecb5df84db8c0e87187cd2f8a00f4')
|
2020-12-22 04:10:43 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cmake -B build -S ${pkgname}-${pkgver} \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-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}/
|
|
|
|
}
|