mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
75 lines
1.8 KiB
Bash
75 lines
1.8 KiB
Bash
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
|
# Contributor: Chocobo1 <chocobo1 AT archlinux DOT net>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - cmake with -DAOM_TARGET_CPU=generic for !AArch64
|
|
|
|
pkgbase=aom
|
|
pkgname=(
|
|
aom
|
|
aom-docs
|
|
)
|
|
pkgver=3.8.1
|
|
pkgrel=1
|
|
pkgdesc="Alliance for Open Media video codec"
|
|
url="https://aomedia.org/"
|
|
arch=(x86_64)
|
|
license=(BSD-3-Clause)
|
|
depends=(
|
|
gcc-libs
|
|
)
|
|
makedepends=(
|
|
cmake
|
|
doxygen
|
|
ninja
|
|
yasm
|
|
)
|
|
source=(
|
|
https://storage.googleapis.com/aom-releases/libaom-$pkgver.tar.gz{,.asc}
|
|
)
|
|
b2sums=('fec3123f8ee68b1027a1a2019969c098b730da72be2902274659b983857f2d8f62dae5b563543b3f144ae8bc51b6d6fdd4fcd6aadf2ca04d5a4dd5be987fbbac'
|
|
'SKIP')
|
|
validpgpkeys=(
|
|
B002F08B74A148DAA01F7123A48E86DB0B830498 # AOMedia release signing key <av1-discuss@aomedia.org>
|
|
)
|
|
|
|
prepare() {
|
|
cd libaom-$pkgver
|
|
}
|
|
|
|
build() {
|
|
[[ $CARCH != "aarch64" ]] && CONFIG="-DAOM_TARGET_CPU=generic"
|
|
local cmake_options=(
|
|
# Upstream would like Release, adding -O3 and removing assertions
|
|
# https://gitlab.archlinux.org/archlinux/packaging/packages/aom/-/issues/1
|
|
-D CMAKE_BUILD_TYPE=Release
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr
|
|
-D BUILD_SHARED_LIBS=1
|
|
-D ENABLE_TESTS=0
|
|
$CONFIG
|
|
)
|
|
|
|
cmake -S libaom-$pkgver -B build -G Ninja "${cmake_options[@]}"
|
|
cmake --build build
|
|
}
|
|
|
|
package_aom() {
|
|
provides=(libaom.so)
|
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libaom-$pkgver/{LICENSE,PATENTS}
|
|
}
|
|
|
|
package_aom-docs() {
|
|
pkgdesc+=" (documentation)"
|
|
depends=()
|
|
|
|
mkdir -p "$pkgdir/usr/share/doc"
|
|
cp -r build/docs/html "$pkgdir/usr/share/doc/$pkgbase"
|
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libaom-$pkgver/{LICENSE,PATENTS}
|
|
}
|
|
|
|
# vim:set sw=2 sts=-1 et:
|