archrelease: copy trunk to extra-x86_64
[arch-packages.git] / aom / repos / extra-x86_64 / PKGBUILD
bloba15a1e26a83ab331778eda5f21e9fbf63096561c
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Chocobo1 <chocobo1 AT archlinux DOT net>
4 pkgbase=aom
5 pkgname=(aom aom-docs)
6 pkgver=3.4.0
7 pkgrel=1
8 pkgdesc="Alliance for Open Media video codec"
9 url="https://aomedia.org/"
10 arch=(x86_64)
11 license=(BSD custom:PATENTS)
12 depends=(gcc-libs)
13 makedepends=(cmake ninja doxygen yasm)
14 options=(debug)
15 source=(https://storage.googleapis.com/aom-releases/libaom-$pkgver.tar.gz{,.asc})
16 b2sums=('7a38cc1a1871f044018a8ebf5022810b753b099ad61e0c6e2625a0480946e8b5e066fd1e1abc5523e817025c8a59d6f1092c12d632c5b602cf3a80f6ef8daa0e'
17         'SKIP')
18 validpgpkeys=(B002F08B74A148DAA01F7123A48E86DB0B830498) # AOMedia release signing key <av1-discuss@aomedia.org>
20 prepare() {
21   cd libaom-$pkgver
24 build() {
25   cmake -S libaom-$pkgver -B build -G Ninja \
26     -DCMAKE_INSTALL_PREFIX=/usr \
27     -DBUILD_SHARED_LIBS=1 \
28     -DENABLE_TESTS=0
29   cmake --build build
32 package_aom() {
33   provides=(libaom.so)
35   DESTDIR="$pkgdir" cmake --install build
37   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libaom-$pkgver/{LICENSE,PATENTS}
40 package_aom-docs() {
41   pkgdesc+=" (documentation)"
42   depends=()
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}
50 # vim:set et sw=2: