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)
15 source=(https://storage.googleapis.com/aom-releases/libaom-$pkgver.tar.gz{,.asc})
16 b2sums=('7a38cc1a1871f044018a8ebf5022810b753b099ad61e0c6e2625a0480946e8b5e066fd1e1abc5523e817025c8a59d6f1092c12d632c5b602cf3a80f6ef8daa0e'
18 validpgpkeys=(B002F08B74A148DAA01F7123A48E86DB0B830498) # AOMedia release signing key <av1-discuss@aomedia.org>
25 cmake -S libaom-$pkgver -B build -G Ninja \
26 -DCMAKE_INSTALL_PREFIX=/usr \
27 -DBUILD_SHARED_LIBS=1 \
35 DESTDIR="$pkgdir" cmake --install build
37 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libaom-$pkgver/{LICENSE,PATENTS}
41 pkgdesc+=" (documentation)"
44 mkdir -p "$pkgdir/usr/share/doc"
45 cp -r build/docs/html "$pkgdir/usr/share/doc/$pkgbase"
47 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libaom-$pkgver/{LICENSE,PATENTS}