mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
36 lines
1 KiB
Bash
36 lines
1 KiB
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=0.8.3
|
||
|
pkgrel=1
|
||
|
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)
|
||
|
sha256sums=('0527720a493a08cfcd56cae2fe10e8c674112ebf1a6e1c30d38fca5bb2a504b2')
|
||
|
|
||
|
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}/
|
||
|
}
|