# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=x265 pkgver=1.9 pkgrel=0 pkgdesc="Open Source H265/HEVC video encoder" url="https://bitbucket.org/multicoreware/x265" arch="all" license="GPL" depends="" depends_dev="" makedepends="$depends_dev cmake yasm" install="" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/multicoreware/$pkgname/downloads/${pkgname}_${pkgver}.tar.gz" _builddir="$srcdir"/x265_$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir"/build/linux local CMAKE_OPS="-DCMAKE_INSTALL_PREFIX=/usr" # has textrel on x86 so we disable asm if [ "$CARCH" = x86 ] ; then CMAKE_OPS="$CMAKE_OPS -DENABLE_ASSEMBLY=OFF" fi cmake -G "Unix Makefiles" $CMAKE_OPS ../../source } package() { cd "$_builddir"/build/linux make DESTDIR="$pkgdir" install || return 1 } md5sums="f34a1c4c660ff07511365cb0983cf164 x265-1.9.tar.gz" sha256sums="3e4654133ed957a98708fdb4cb9a154d9e80922b84e26e43fc462a101c5b15c8 x265-1.9.tar.gz" sha512sums="1c399101374da58d0661786a6144dd25a2028e25bcb99b3084d8839b0bd9c20bccf5c0e4413882f16b3b1c49f96710746a16cb690f3811dffb08c3befdc8e5f1 x265-1.9.tar.gz"