archrelease: copy trunk to extra-x86_64
[arch-packages.git] / aom / repos / extra-x86_64 / PKGBUILD
blob8f011a0debdf555a3b5a68dad5f2f75d74f1f3af
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.6.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 source=(https://storage.googleapis.com/aom-releases/libaom-$pkgver.tar.gz{,.asc})
15 b2sums=('bf97c74f3e59e3cc2431e7b7e3494beffde1b659d1a8f8775b4b47da0c7314b8bf5b9bdf14a9d1d47a8378271f49c9e26676e73509f9e910f1d5a01e79b575bc'
16         'SKIP')
17 validpgpkeys=(B002F08B74A148DAA01F7123A48E86DB0B830498) # AOMedia release signing key <av1-discuss@aomedia.org>
19 prepare() {
20   cd libaom-$pkgver
23 build() {
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 \
32     -DENABLE_TESTS=0
33   cmake --build build
36 package_aom() {
37   provides=(libaom.so)
39   DESTDIR="$pkgdir" cmake --install build
41   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libaom-$pkgver/{LICENSE,PATENTS}
44 package_aom-docs() {
45   pkgdesc+=" (documentation)"
46   depends=()
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: