PKGBUILDs/extra/libavif/PKGBUILD

35 lines
1,004 B
Bash
Raw Normal View History

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
2023-08-30 12:39:16 +00:00
pkgver=1.0.1
2023-10-30 13:06:22 +00:00
pkgrel=4
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)
2023-10-11 23:01:57 +00:00
depends=(glibc aom dav1d librav1e.so libpng libjpeg libyuv)
2020-12-22 04:10:43 +00:00
makedepends=(cmake nasm pkgconf gdk-pixbuf2)
2023-08-30 12:39:16 +00:00
source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('398fe7039ce35db80fe7da8d116035924f2c02ea4a4aa9f4903df6699287599c')
2020-12-22 04:10:43 +00:00
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}/
}