1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: kfgz <kfgz@interia.pl>
8 pkgdesc='Open Source H265/HEVC video encoder'
10 url=https://bitbucket.org/multicoreware/x265_git
20 _tag=f0c1022b6be121a753ff02853fbe33da71988656
21 source=(git+https://bitbucket.org/multicoreware/x265_git#tag=${_tag})
31 cmake -S x265_git/source -B build-12 -G Ninja \
32 -DCMAKE_INSTALL_PREFIX=/usr \
33 -DHIGH_BIT_DEPTH=TRUE \
35 -DEXPORT_C_API=FALSE \
37 -DENABLE_SHARED=FALSE \
41 cmake -S x265_git/source -B build-10 -G Ninja \
42 -DCMAKE_INSTALL_PREFIX=/usr \
43 -DHIGH_BIT_DEPTH=TRUE \
44 -DEXPORT_C_API=FALSE \
46 -DENABLE_SHARED=FALSE \
50 cmake -S x265_git/source -B build -G Ninja \
51 -DCMAKE_INSTALL_PREFIX=/usr \
52 -DENABLE_SHARED=TRUE \
53 -DENABLE_HDR10_PLUS=TRUE \
54 -DEXTRA_LIB='x265_main10.a;x265_main12.a' \
55 -DEXTRA_LINK_FLAGS='-L .' \
59 ln -s ../build-10/libx265.a build/libx265_main10.a
60 ln -s ../build-12/libx265.a build/libx265_main12.a
65 DESTDIR="${pkgdir}" ninja -C build install