blob: e6ce2fcff3ce068e65da6168f73951a9d7286707 (
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
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
# NOTE:
# 10-bit depth is not supported currently
# https://github.com/pkuvcl/xavs2/blob/1.4/build/linux/configure#L500
pkgname=xavs2
pkgver=1.4
pkgrel=2
arch=('x86_64')
pkgdesc='Open-Source encoder of AVS2-P2/IEEE1857.4 video coding standard'
url='https://github.com/pkuvcl/xavs2/'
license=('GPL-2.0-or-later')
depends=('glibc' 'liblsmash.so')
makedepends=('nasm' 'l-smash')
provides=('libxavs2')
conflicts=('libxavs2')
replaces=('libxavs2')
options=('!lto')
source=("https://github.com/pkuvcl/xavs2/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('1e6d731cd64cb2a8940a0a3fd24f9c2ac3bb39357d802432a47bc20bad52c6ce')
build() {
cd "${pkgname}-${pkgver}/build/linux"
# fix build with gcc 14
export CFLAGS+=' -Wno-incompatible-pointer-types'
./configure \
--prefix='/usr' \
--enable-shared \
--bit-depth='8' \
--chroma-format='all' \
--enable-pic \
--disable-swscale \
--disable-lavf \
--disable-ffms \
--disable-gpac
make
}
package() {
make -C "${pkgname}-${pkgver}/build/linux" DESTDIR="$pkgdir" install-cli install-lib-shared
}
|