summaryrefslogtreecommitdiff
path: root/main/aom/APKBUILD
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2023-04-28 19:38:21 +0000
committerpsykose <alice@ayaya.dev>2023-04-28 21:38:21 +0200
commit1e39e36daefe0ca490bd6c63a1dbfd0811fb1b18 (patch)
tree39f11de9b956dd09db3fc752abdd1ad92ae3c7ec /main/aom/APKBUILD
parentc148f9a51329406f35b3573c84cd11723aba8670 (diff)
downloadaports-1e39e36daefe0ca490bd6c63a1dbfd0811fb1b18.zip
main/aom: use real tarball, cleanup
the google gitiles source has new checksums every time it's fetched
Diffstat (limited to 'main/aom/APKBUILD')
-rw-r--r--main/aom/APKBUILD32
1 files changed, 11 insertions, 21 deletions
diff --git a/main/aom/APKBUILD b/main/aom/APKBUILD
index e7d92c6321c..17c080163d1 100644
--- a/main/aom/APKBUILD
+++ b/main/aom/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=aom
pkgver=3.6.0
-pkgrel=2
+pkgrel=3
pkgdesc="Alliance for Open Media (AOM) AV1 codec SDK"
url="https://aomedia.org/"
arch="all"
@@ -10,20 +10,18 @@ license="BSD-2-Clause AND custom"
options="!check" # tests run for 5+ hours
makedepends="
cmake
+ linux-headers
nasm
perl
python3
samurai
"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
-source="$pkgname-$pkgver.tar.gz::https://aomedia.googlesource.com/aom/+archive/v$pkgver.tar.gz
+source="https://storage.googleapis.com/aom-releases/libaom-$pkgver.tar.gz
fix-stack-size-e53da0b.patch
posix-implicit.patch
"
-
-case "$CARCH" in
- ppc64le) makedepends="$makedepends linux-headers" ;;
-esac
+builddir="$srcdir/libaom-$pkgver"
# secfixes:
# 3.1.1-r0:
@@ -39,13 +37,13 @@ build() {
esac
cmake -B build -G Ninja \
- $_neon_opt \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=Release \
- -DENABLE_TESTS="$(want_check && echo ON || echo OFF)"
- ninja -C build
+ -DENABLE_TESTS="$(want_check && echo ON || echo OFF)" \
+ $_neon_opt
+ cmake --build build
}
check() {
@@ -57,22 +55,14 @@ check() {
}
package() {
- DESTDIR="$pkgdir" ninja -C build install
-
- install -Dm 644 -t "$pkgdir"/usr/share/doc/"$pkgname"/ README.md
- install -Dm 644 -t "$pkgdir"/usr/share/doc/"$pkgname"/ LICENSE
- install -Dm 644 -t "$pkgdir"/usr/share/doc/"$pkgname"/ PATENTS
-}
-
-unpack() {
- mkdir -p "$builddir"
+ DESTDIR="$pkgdir" cmake --install build
- tar -xf "$srcdir/$pkgname-$pkgver.tar.gz" \
- -C "$builddir" > /dev/null
+ install -Dm 644 -t "$pkgdir"/usr/share/doc/"$pkgname"/ \
+ README.md LICENSE PATENTS
}
sha512sums="
-5127f4dfea7786f35d7c7fe42b5146895f2d5f37511e84ddc99ce0f7251d34d66efbc3fdb4b65f93fec41fc783d105d8201a108cc4ecaf9d8526eb43d6ba2711 aom-3.6.0.tar.gz
+28df178f43f26a064474f7d9c79882b4c04b66fed16f904ac9b37386912660e2af88c90672ec04eed99aef104156cf1e72040fa975895522dca7b88760b138bc libaom-3.6.0.tar.gz
573a6c9cd1e9c71a0612f750fb1b69ee65ab86364d3aa78ef51b8fb20633c69b97026d0685dedeabb51f31d0dab7c651d1fe5c72e0dc9f14b8ed2704584934a9 fix-stack-size-e53da0b.patch
30cc17c38219e81f92f1f034786d5d4096a0e657c86dfe581f84d18fc201a0e34bd331e98271f92c07e5dc49740e164a983b3316fc57599b98aea2615f7cf107 posix-implicit.patch
"