mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
54 lines
1.5 KiB
Bash
54 lines
1.5 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.4.0
|
|
pkgrel=1
|
|
pkgdesc="Alliance for Open Media video codec"
|
|
url="https://aomedia.org/"
|
|
arch=(x86_64)
|
|
license=(BSD custom:PATENTS)
|
|
depends=(gcc-libs)
|
|
makedepends=(cmake ninja doxygen yasm)
|
|
options=(debug)
|
|
source=(https://storage.googleapis.com/aom-releases/libaom-$pkgver.tar.gz{,.asc})
|
|
b2sums=('7a38cc1a1871f044018a8ebf5022810b753b099ad61e0c6e2625a0480946e8b5e066fd1e1abc5523e817025c8a59d6f1092c12d632c5b602cf3a80f6ef8daa0e'
|
|
'SKIP')
|
|
validpgpkeys=(B002F08B74A148DAA01F7123A48E86DB0B830498) # AOMedia release signing key <av1-discuss@aomedia.org>
|
|
|
|
prepare() {
|
|
cd libaom-$pkgver
|
|
}
|
|
|
|
build() {
|
|
[[ $CARCH != "aarch64" ]] && CONFIG="-DAOM_TARGET_CPU=generic"
|
|
cmake -S libaom-$pkgver -B build -G Ninja \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DBUILD_SHARED_LIBS=1 \
|
|
-DENABLE_TESTS=0 $CONFIG
|
|
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 et sw=2:
|