blob: 5823b1763a8b206d72a63566852e2fa36844b130 (
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
|
# Maintainer : Daniel Bermond < gmail-com: danielbermond >
# NOTE:
# 10-bit depth currently fails to build
# https://github.com/pkuvcl/davs2/issues/4
pkgname=davs2
pkgver=1.6
pkgrel=2
arch=('i686' 'x86_64')
pkgdesc='Open-Source encoder of AVS2-P2/IEEE1857.4 video coding standard'
url='https://github.com/pkuvcl/davs2/'
license=('GPL')
depends=('glibc')
makedepends=('gcc7' 'yasm')
provides=('libdavs2')
conflicts=('libdavs2')
replaces=('libdavs2')
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/pkuvcl/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('de93800f016cbaf08cb40184a8069050dc625da5240a528155137052d1cf81c8')
prepare() {
cd "${pkgname}-${pkgver}"
# use gcc7 (it does not build with gcc8)
sed -i 's/g++/g++-7/' build/linux/configure
}
build() {
cd "${pkgname}-${pkgver}/build/linux"
./configure \
--prefix='/usr' \
--enable-shared \
--disable-static \
--bit-depth='8' \
--chroma-format='all' \
--enable-lto \
--enable-pic
make
}
package() {
make -C "${pkgname}-${pkgver}/build/linux" DESTDIR="$pkgdir" install-cli install-lib-shared
}
|