Date: Thursday, January 14, 2021 @ 11:56:13 Author: archange Revision: 820799
archrelease: copy trunk to community-staging-x86_64 Added: libavif/repos/community-staging-x86_64/ libavif/repos/community-staging-x86_64/PKGBUILD (from rev 820798, libavif/trunk/PKGBUILD) ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Copied: libavif/repos/community-staging-x86_64/PKGBUILD (from rev 820798, libavif/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-01-14 11:56:13 UTC (rev 820799) @@ -0,0 +1,31 @@ +# Maintainer: Bruno Pagani <archa...@archlinux.org> + +pkgname=libavif +pkgver=0.8.4 +pkgrel=2 +pkgdesc="Library for encoding and decoding .avif files" +arch=(x86_64) +url="https://github.com/AOMediaCodec/libavif" +license=(BSD) +depends=(glibc aom dav1d rav1e svt-av1 zlib libpng libjpeg libyuv) +makedepends=(cmake nasm pkgconf gdk-pixbuf2) +source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=('116b46a9a497c6ef178c5a20b912d8ac02f888dc8c537e40b5d16700823a9b16') + +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=ON \ + -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}/ +}