mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/aom to 3.1.3-2
This commit is contained in:
parent
61df2a07ac
commit
18ceaf848f
1 changed files with 9 additions and 16 deletions
|
@ -7,32 +7,25 @@
|
|||
pkgbase=aom
|
||||
pkgname=(aom aom-docs)
|
||||
pkgver=3.1.3
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Alliance for Open Media video codec"
|
||||
url="https://aomedia.org/"
|
||||
arch=(x86_64)
|
||||
license=(BSD custom:PATENTS)
|
||||
depends=(gcc-libs)
|
||||
makedepends=(git cmake ninja doxygen yasm)
|
||||
_commit=ce9a40ce01ade9d6fea1721c82645804a2f39b00 # tags/v3.1.3^0
|
||||
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'
|
||||
}
|
||||
makedepends=(cmake ninja doxygen yasm)
|
||||
source=(https://storage.googleapis.com/aom-releases/libaom-$pkgver.tar.gz{,.asc})
|
||||
b2sums=('b950c2cda0788d41e16ff771015ab934489c1aa53e366e394a17504845f152d93afc9ccf22a0f95fe828f1fdab27e617b8f81c61b250e64f8903e64043e746d1'
|
||||
'SKIP')
|
||||
validpgpkeys=(B002F08B74A148DAA01F7123A48E86DB0B830498) # AOMedia release signing key <av1-discuss@aomedia.org>
|
||||
|
||||
prepare() {
|
||||
cd $pkgbase
|
||||
|
||||
# https://bugs.archlinux.org/task/71800
|
||||
git cherry-pick -n 31257f59a1df72cbbd1399efb780d13a0e433b16
|
||||
}
|
||||
|
||||
build() {
|
||||
[[ $CARCH != "aarch64" ]] && CONFIG="-DAOM_TARGET_CPU=generic"
|
||||
cmake -S $pkgbase -B build -G Ninja \
|
||||
cmake -S . -B build -G Ninja \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DBUILD_SHARED_LIBS=1 \
|
||||
-DENABLE_TESTS=0 $CONFIG
|
||||
|
@ -44,7 +37,7 @@ package_aom() {
|
|||
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
|
||||
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/{LICENSE,PATENTS}
|
||||
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE PATENTS
|
||||
}
|
||||
|
||||
package_aom-docs() {
|
||||
|
@ -54,7 +47,7 @@ package_aom-docs() {
|
|||
mkdir -p "$pkgdir/usr/share/doc"
|
||||
cp -r build/docs/html "$pkgdir/usr/share/doc/$pkgbase"
|
||||
|
||||
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/{LICENSE,PATENTS}
|
||||
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE PATENTS
|
||||
}
|
||||
|
||||
# vim:set et sw=2:
|
||||
|
|
Loading…
Reference in a new issue