blob: 09912bce3fa5b2f97530fe051b9b3e1c78da195c (
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
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Daniel Bermond <dbermond@archlinux.org>
# Contributor: Thomas Schneider <maxmusterm@gmail.com>
_android_arch=x86
pkgname=android-${_android_arch}-svt-av1
pkgver=2.2.1
pkgrel=1
arch=('any')
pkgdesc="Scalable Video Technology AV1 encoder and decoder (Android ${_android_arch})"
url='https://gitlab.com/AOMediaCodec/SVT-AV1'
license=('BSD'
'custom: Alliance for Open Media Patent License 1.0')
groups=('android-svt-av1')
depends=('android-ndk')
makedepends=('android-cmake'
'nasm')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v${pkgver}/SVT-AV1-v${pkgver}.tar.bz2")
md5sums=('975ab9ee4fd0dc08eba47b31bae15c78')
prepare() {
cd "${srcdir}/SVT-AV1-v${pkgver}"
sed -i '/CMAKE_BUILD_TYPE Release/d' CMakeLists.txt
}
build() {
cd "${srcdir}/SVT-AV1-v${pkgver}"
source android-env ${_android_arch}
export LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
android-${_android_arch}-cmake \
-S . \
-B build-shared \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_APPS=OFF \
-DNATIVE=OFF
make -C build-shared $MAKEFLAGS
android-${_android_arch}-cmake \
-S . \
-B build-static \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_APPS=OFF \
-DNATIVE=OFF
make -C build-static $MAKEFLAGS
}
package() {
cd "${srcdir}/SVT-AV1-v${pkgver}"
source android-env ${_android_arch}
make -C build-shared DESTDIR="${pkgdir}" install
make -C build-static DESTDIR="${pkgdir}" install
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|