extra/aom to 3.5.0-1

This commit is contained in:
Kevin Mihelich 2022-09-24 17:54:45 +00:00
parent 30dffdf13f
commit 2e1465ff68

View file

@ -6,7 +6,7 @@
pkgbase=aom
pkgname=(aom aom-docs)
pkgver=3.4.0
pkgver=3.5.0
pkgrel=1
pkgdesc="Alliance for Open Media video codec"
url="https://aomedia.org/"
@ -16,7 +16,7 @@ depends=(gcc-libs)
makedepends=(cmake ninja doxygen yasm)
options=(debug)
source=(https://storage.googleapis.com/aom-releases/libaom-$pkgver.tar.gz{,.asc})
b2sums=('7a38cc1a1871f044018a8ebf5022810b753b099ad61e0c6e2625a0480946e8b5e066fd1e1abc5523e817025c8a59d6f1092c12d632c5b602cf3a80f6ef8daa0e'
b2sums=('d47ddb864c909c972f692667177417daef0350124a096547eacc83ab3630227fe7a23e95f3988a2109c580f9a87ba30a58bcc58be1a2e24fe694eb01655a4861'
'SKIP')
validpgpkeys=(B002F08B74A148DAA01F7123A48E86DB0B830498) # AOMedia release signing key <av1-discuss@aomedia.org>
@ -25,9 +25,14 @@ prepare() {
}
build() {
# Upstream would like -O3
CFLAGS="${CFLAGS/-O2/-O3}"
CXXFLAGS="${CXXFLAGS/-O2/-O3}"
[[ $CARCH != "aarch64" ]] && CONFIG="-DAOM_TARGET_CPU=generic"
cmake -S libaom-$pkgver -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-DBUILD_SHARED_LIBS=1 \
-DENABLE_TESTS=0 $CONFIG
cmake --build build
@ -51,4 +56,4 @@ package_aom-docs() {
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libaom-$pkgver/{LICENSE,PATENTS}
}
# vim:set et sw=2:
# vim:set sw=2 sts=-1 et: