blob: b630c13a87579212972380a2c49fcfb914eb4ea5 (
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
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgname=libgav1-git
pkgver=0.16.3.r0.gac9e35a
pkgrel=1
pkgdesc='A main profile (0) and high profile (1) compliant AV1 decoder (git version)'
arch=('x86_64')
url='https://chromium.googlesource.com/codecs/libgav1/'
license=('Apache')
depends=('gcc-libs')
makedepends=('git' 'cmake')
provides=('libgav1')
conflicts=('libgav1')
source=('git+https://chromium.googlesource.com/codecs/libgav1'
'git+https://github.com/abseil/abseil-cpp.git'
'git+https://github.com/google/googletest.git')
sha256sums=('SKIP'
'SKIP'
'SKIP')
prepare() {
mkdir -p libgav1/third_party
ln -sf ../../abseil-cpp libgav1/third_party/abseil-cpp
ln -sf ../../googletest libgav1/third_party/googletest
}
pkgver() {
git -C libgav1 describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
build() {
cmake -B build -S libgav1 \
-DCMAKE_BUILD_TYPE:STRING='None' \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-DLIBGAV1_ENABLE_SSE4_1:BOOL='OFF' \
-DLIBGAV1_ENABLE_AVX2:BOOL='OFF' \
-Wno-dev
make -C build
}
check() {
local _test
while read -r -d '' _test
do
"$_test"
done < <(find build -maxdepth 1 -type f -name '*_test' -executable -print0)
}
package() {
make -C build DESTDIR="$pkgdir" install
}
|