Commit 164bf7b1 authored by Bart Ribbers's avatar Bart Ribbers Committed by TBK
Browse files

testing/libavif: new aport

parent da009442
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libavif
pkgver=0.8.4
pkgrel=0
pkgdesc="Library for encoding and decoding .avif files"
url="https://aomediacodec.github.io/av1-avif/"
arch="all"
license="BSD-2-Clause"
makedepends="
cmake
dav1d-dev
libjpeg-turbo-dev
libpng-dev
zlib-dev
"
subpackages="$pkgname-dev $pkgname-apps"
source="https://github.com/AOMediaCodec/libavif/archive/v$pkgver/libavif-v$pkgver.tar.gz"
build() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DAVIF_BUILD_APPS=ON \
-DAVIF_BUILD_TESTS=ON \
-DAVIF_CODEC_AOM=OFF \
-DAVIF_CODEC_DAV1D=ON
cmake --build build
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
apps() {
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
sha512sums="92c5df26da70ca113ff3b217a4a09e3dea0b7c4737e0924bd2b232502cfda0c79f4f0785bc7992c973491af7660338cda481bae7b999632815142564bf3275ba libavif-v0.8.4.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment