1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Chocobo1 <chocobo1 AT archlinux DOT net>
8 pkgdesc="Alliance for Open Media video codec"
9 url="https://aomedia.org/"
11 license=(BSD custom:PATENTS)
13 makedepends=(cmake ninja doxygen yasm)
14 source=(https://storage.googleapis.com/aom-releases/libaom-$pkgver.tar.gz{,.asc})
15 b2sums=('bf97c74f3e59e3cc2431e7b7e3494beffde1b659d1a8f8775b4b47da0c7314b8bf5b9bdf14a9d1d47a8378271f49c9e26676e73509f9e910f1d5a01e79b575bc'
17 validpgpkeys=(B002F08B74A148DAA01F7123A48E86DB0B830498) # AOMedia release signing key <av1-discuss@aomedia.org>
24 # Upstream would like -O3
25 CFLAGS="${CFLAGS/-O2/-O3}"
26 CXXFLAGS="${CXXFLAGS/-O2/-O3}"
28 cmake -S libaom-$pkgver -B build -G Ninja \
29 -DCMAKE_INSTALL_PREFIX=/usr \
30 -DCMAKE_BUILD_TYPE=None \
31 -DBUILD_SHARED_LIBS=1 \
39 DESTDIR="$pkgdir" cmake --install build
41 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libaom-$pkgver/{LICENSE,PATENTS}
45 pkgdesc+=" (documentation)"
48 mkdir -p "$pkgdir/usr/share/doc"
49 cp -r build/docs/html "$pkgdir/usr/share/doc/$pkgbase"
51 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libaom-$pkgver/{LICENSE,PATENTS}
54 # vim:set sw=2 sts=-1 et: