extra/aom to 1.0.0.errata1+avif-1

This commit is contained in:
Kevin Mihelich 2020-02-22 02:38:07 +00:00
parent c3aca2cea0
commit 954e990c9c

View file

@ -5,15 +5,16 @@
# - cmake with -DAOM_TARGET_CPU=generic for !AArch64 # - cmake with -DAOM_TARGET_CPU=generic for !AArch64
pkgname=aom pkgname=aom
pkgver=1.0.0.errata1 pkgver=1.0.0.errata1+avif
pkgrel=1 pkgrel=1
pkgdesc="Alliance for Open Media video codec" pkgdesc="Alliance for Open Media video codec"
url="https://aomedia.org/" url="https://aomedia.org/"
arch=(x86_64) arch=(x86_64)
license=(BSD custom:PATENTS) license=(BSD custom:PATENTS)
depends=(gcc-libs) depends=(gcc-libs)
makedepends=(git cmake ninja doxygen graphviz yasm) makedepends=(git cmake ninja doxygen yasm)
_commit=add4b15580e410c00c927ee366fa65545045a5d9 # tags/v1.0.0-errata1^0 provides=(libaom.so)
_commit=4eb1e7795b9700d532af38a2d9489458a8038233 # tags/v1.0.0-errata1-avif^0
source=("git+https://aomedia.googlesource.com/aom#commit=$_commit") source=("git+https://aomedia.googlesource.com/aom#commit=$_commit")
sha256sums=('SKIP') sha256sums=('SKIP')
@ -23,21 +24,16 @@ pkgver() {
} }
prepare() { prepare() {
mkdir build
cd $pkgname cd $pkgname
# Reduce docs size
printf '%s\n' >>libs.doxy_template \
HAVE_DOT=yes DOT_IMAGE_FORMAT=svg INTERACTIVE_SVG=yes
} }
build() { build() {
cd build
[[ $CARCH != "aarch64" ]] && CONFIG="-DAOM_TARGET_CPU=generic" [[ $CARCH != "aarch64" ]] && CONFIG="-DAOM_TARGET_CPU=generic"
cmake -G Ninja ../$pkgname \ cmake -H$pkgname -Bbuild \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=1 \ -DBUILD_SHARED_LIBS=1 \
-DENABLE_TESTS=0 $CONFIG -DENABLE_TESTS=0 $CONFIG
cmake --build . cmake --build build
} }
package() { package() {