2020-12-11 01:00:36 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
2018-10-03 12:50:16 +00:00
|
|
|
# Contributor: Chocobo1 <chocobo1 AT archlinux DOT net>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - cmake with -DAOM_TARGET_CPU=generic for !AArch64
|
|
|
|
|
2021-04-07 14:09:19 +00:00
|
|
|
pkgbase=aom
|
|
|
|
pkgname=(aom aom-docs)
|
2021-10-06 23:30:02 +00:00
|
|
|
pkgver=3.1.3
|
|
|
|
pkgrel=1
|
2018-10-03 12:50:16 +00:00
|
|
|
pkgdesc="Alliance for Open Media video codec"
|
|
|
|
url="https://aomedia.org/"
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(BSD custom:PATENTS)
|
|
|
|
depends=(gcc-libs)
|
2020-02-22 02:38:07 +00:00
|
|
|
makedepends=(git cmake ninja doxygen yasm)
|
2021-10-06 23:30:02 +00:00
|
|
|
_commit=ce9a40ce01ade9d6fea1721c82645804a2f39b00 # tags/v3.1.3^0
|
2021-04-15 21:53:40 +00:00
|
|
|
source=("git+https://aomedia.googlesource.com/aom#commit=$_commit")
|
|
|
|
b2sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd $pkgbase
|
|
|
|
git describe --tags | sed 's/^v//;s/-errata/.errata/;s/-/+/g'
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgbase
|
2021-08-31 21:35:28 +00:00
|
|
|
|
|
|
|
# https://bugs.archlinux.org/task/71800
|
|
|
|
git cherry-pick -n 31257f59a1df72cbbd1399efb780d13a0e433b16
|
2021-04-15 21:53:40 +00:00
|
|
|
}
|
2018-10-03 12:50:16 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
[[ $CARCH != "aarch64" ]] && CONFIG="-DAOM_TARGET_CPU=generic"
|
2021-04-15 21:53:40 +00:00
|
|
|
cmake -S $pkgbase -B build -G Ninja \
|
2018-10-03 12:50:16 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DBUILD_SHARED_LIBS=1 \
|
|
|
|
-DENABLE_TESTS=0 $CONFIG
|
2020-02-22 02:38:07 +00:00
|
|
|
cmake --build build
|
2018-10-03 12:50:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-07 14:09:19 +00:00
|
|
|
package_aom() {
|
|
|
|
provides=(libaom.so)
|
|
|
|
|
2020-12-11 01:00:36 +00:00
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
2018-10-03 12:50:16 +00:00
|
|
|
|
2021-04-15 21:53:40 +00:00
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/{LICENSE,PATENTS}
|
2021-04-07 14:09:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_aom-docs() {
|
|
|
|
pkgdesc+=" (documentation)"
|
|
|
|
depends=()
|
|
|
|
|
2018-10-03 12:50:16 +00:00
|
|
|
mkdir -p "$pkgdir/usr/share/doc"
|
2021-04-15 21:53:40 +00:00
|
|
|
cp -r build/docs/html "$pkgdir/usr/share/doc/$pkgbase"
|
2018-10-03 12:50:16 +00:00
|
|
|
|
2021-04-15 21:53:40 +00:00
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/{LICENSE,PATENTS}
|
2018-10-03 12:50:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set et sw=2:
|