# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=x265 pkgver=2.4 pkgrel=0 pkgdesc="Open Source H265/HEVC video encoder" url="https://bitbucket.org/multicoreware/x265" arch="all" license="GPL" makedepends="cmake yasm" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/multicoreware/$pkgname/downloads/${pkgname}_${pkgver}.tar.gz" builddir="$srcdir/${pkgname}_$pkgver" build() { cd "$builddir"/build/linux # It has textrel on x86 so we disable asm. local cmake_opts="" case "$CARCH" in x86) cmake_opts="-DENABLE_ASSEMBLY=OFF";; ppc64le) cmake_opts="-DENABLE_ALTIVEC=OFF";; esac cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_VERBOSE_MAKEFILE=ON \ $cmake_opts \ ../../source make } package() { cd "$builddir"/build/linux make DESTDIR="$pkgdir" install } sha512sums="40d0e57104839454226cdba928806c12e533eade391a89e9587e1f9c11b8fd70cc54d20136a09a1127784fe7799c80425617280076b29e1a1ffff7ce44f07dbe x265-2.4.tar.gz"