blob: 5f5372bd2c9633f13c974f36b9efd783c552d15a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer: Rodrigo Bezerra <rodrigobezerra21 at gmail dot com>
_basename=aom
pkgname=(
lib32-aom
)
pkgver=3.9.0
pkgrel=1
pkgdesc="Alliance for Open Media video codec (32-bit)"
url="https://aomedia.org/"
arch=(x86_64)
license=(BSD-3-Clause)
depends=(
lib32-glibc
aom
)
makedepends=(
cmake
ninja
yasm
)
source=(
https://storage.googleapis.com/aom-releases/libaom-$pkgver.tar.gz{,.asc}
)
b2sums=('4c68b58f6a8e347ee912e309a030804c4a3cc99714e2aaf127add63222df3056c7cf4b6c50f4861557b0892739035149b5e002e25272882eff55cde5d9b745b7'
'SKIP')
validpgpkeys=(
B002F08B74A148DAA01F7123A48E86DB0B830498 # AOMedia release signing key <av1-discuss@aomedia.org>
)
prepare() {
cd libaom-$pkgver
}
build() {
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 CMAKE_INSTALL_LIBDIR=lib32
-D CMAKE_BUILD_TYPE=None
-D BUILD_SHARED_LIBS=1
-D ENABLE_TESTS=0
-D ENABLE_DOCS=0
)
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
cmake -S libaom-$pkgver -B build -G Ninja "${cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libaom-$pkgver/{LICENSE,PATENTS}
cd "$pkgdir/usr"
rm -r bin include
}
|