# $Id$ # Maintainer: Bartłomiej Piotrowski # Contributor: kfgz # ALARM: Kevin Mihelich # - patch to attempt fixing ARM hackery by bandwagoning developers pkgname=x265 pkgver=1.0 pkgrel=1 pkgdesc='Open Source H265/HEVC video encoder' arch=('i686' 'x86_64') license=('GPL') depends=('gcc-libs') makedepends=('yasm' 'cmake') url='https://bitbucket.org/multicoreware/x265' source=($url/get/$pkgver.tar.bz2 arm.patch) md5sums=('80efe963d3460caa051fe0b10d36bc10' 'b34f36b81f351061fa83ef7ef1a30956') prepare() { cd multicoreware-x265-* patch -p1 -i ../arm.patch } build() { cd multicoreware-x265-*/build/linux [[ $CARCH == x86_64 ]] && LDFLAGS+=',-z,noexecstack' cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr ../../source make } package() { cd multicoreware-x265-*/build/linux make DESTDIR="$pkgdir" install }