PKGBUILDs/extra/x265/PKGBUILD

39 lines
976 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
2015-06-07 13:19:35 +00:00
pkgver=1.7
2015-06-20 12:24:55 +00:00
pkgrel=2
2014-03-30 04:59:56 +00:00
pkgdesc='Open Source H265/HEVC video encoder'
arch=('i686' 'x86_64')
2015-04-10 15:02:36 +00:00
url='https://bitbucket.org/multicoreware/x265'
2014-03-30 04:59:56 +00:00
license=('GPL')
depends=('gcc-libs')
makedepends=('yasm' 'cmake')
2015-04-10 15:02:36 +00:00
provides=('libx265.so')
source=($pkgname-$pkgver.tar.bz2::$url/get/$pkgver.tar.bz2
2014-03-30 04:59:56 +00:00
arm.patch)
2015-06-07 13:19:35 +00:00
md5sums=('d6020c277b05ab44f8222342aaa9c99f'
2015-02-12 13:26:25 +00:00
'9c773543b7a1f2b54f02f588725a8201')
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
}