PKGBUILDs/extra/x265/PKGBUILD

38 lines
926 B
Bash
Raw Normal View History

2014-03-30 04:59:56 +00:00
# $Id$
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: kfgz <kfgz at interia pl>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to attempt fixing ARM hackery by bandwagoning developers
pkgname=x265
2014-05-06 12:27:01 +00:00
pkgver=1.0
2014-04-10 13:11:05 +00:00
pkgrel=1
2014-03-30 04:59:56 +00:00
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)
2014-05-06 12:27:01 +00:00
md5sums=('80efe963d3460caa051fe0b10d36bc10'
2014-04-10 13:34:31 +00:00
'84b4f95a14040711d298c1abfc4e373a')
2014-03-30 04:59:56 +00:00
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
2014-03-30 05:00:43 +00:00
make
2014-03-30 04:59:56 +00:00
}
package() {
cd multicoreware-x265-*/build/linux
make DESTDIR="$pkgdir" install
}