2015-10-11 14:21:16 +00:00
|
|
|
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
|
2016-10-02 14:45:31 +00:00
|
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
2015-10-11 14:21:16 +00:00
|
|
|
# Contributor: kfgz <kfgz@interia.pl>
|
2014-03-30 04:59:56 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - patch to attempt fixing ARM hackery by bandwagoning developers
|
2017-12-19 22:26:20 +00:00
|
|
|
# - retain 10/12 bit separation for AArch64
|
2018-05-29 18:25:02 +00:00
|
|
|
# - disable all ARM assembly - version 2.8 broke ARM support completely
|
2018-10-08 16:07:35 +00:00
|
|
|
# - patch from upstream bug https://bitbucket.org/multicoreware/x265/issues/442
|
2014-03-30 04:59:56 +00:00
|
|
|
|
|
|
|
pkgname=x265
|
2021-03-23 14:04:59 +00:00
|
|
|
pkgver=3.5
|
2016-12-28 13:39:08 +00:00
|
|
|
pkgrel=1
|
2014-03-30 04:59:56 +00:00
|
|
|
pkgdesc='Open Source H265/HEVC video encoder'
|
2019-07-16 19:15:29 +00:00
|
|
|
arch=(x86_64)
|
2021-03-23 14:04:59 +00:00
|
|
|
url=https://bitbucket.org/multicoreware/x265_git
|
2019-07-16 19:15:29 +00:00
|
|
|
license=(GPL)
|
2019-10-30 17:57:56 +00:00
|
|
|
depends=(gcc-libs)
|
2019-07-16 19:15:29 +00:00
|
|
|
makedepends=(
|
|
|
|
cmake
|
2021-03-23 14:04:59 +00:00
|
|
|
git
|
2019-07-16 19:15:29 +00:00
|
|
|
nasm
|
2020-06-09 18:55:00 +00:00
|
|
|
ninja
|
2019-07-16 19:15:29 +00:00
|
|
|
)
|
|
|
|
provides=(libx265.so)
|
2021-03-23 14:04:59 +00:00
|
|
|
_tag=f0c1022b6be121a753ff02853fbe33da71988656
|
|
|
|
source=(git+https://bitbucket.org/multicoreware/x265_git#tag=${_tag}
|
2019-02-05 13:55:14 +00:00
|
|
|
arm.patch)
|
2018-10-08 16:07:35 +00:00
|
|
|
sha256sums=('SKIP'
|
2020-06-09 18:55:00 +00:00
|
|
|
'067b934ae83339deedc58608d272529a004789c3e2819b94636d66a5806fd64b')
|
2014-03-30 04:59:56 +00:00
|
|
|
|
2019-10-30 17:57:56 +00:00
|
|
|
pkgver() {
|
2021-03-23 14:04:59 +00:00
|
|
|
cd x265_git
|
2019-10-30 17:57:56 +00:00
|
|
|
|
2021-03-23 14:04:59 +00:00
|
|
|
git describe --tags
|
2019-10-30 17:57:56 +00:00
|
|
|
}
|
|
|
|
|
2014-03-30 04:59:56 +00:00
|
|
|
prepare() {
|
2021-03-23 14:04:59 +00:00
|
|
|
cd x265_git
|
2014-03-30 04:59:56 +00:00
|
|
|
patch -p1 -i ../arm.patch
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2020-06-09 18:55:00 +00:00
|
|
|
[[ $CARCH != "aarch64" ]] && CONFIG="-DENABLE_ASSEMBLY=OFF"
|
2021-03-23 14:04:59 +00:00
|
|
|
cmake -S x265_git/source -B build -G Ninja \
|
2019-07-16 19:15:29 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DENABLE_SHARED=TRUE \
|
2018-03-09 19:09:33 +00:00
|
|
|
$CONFIG
|
2020-06-09 18:55:00 +00:00
|
|
|
ninja -C build
|
2014-03-30 04:59:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-06-09 18:55:00 +00:00
|
|
|
DESTDIR="${pkgdir}" ninja -C build install
|
2014-03-30 04:59:56 +00:00
|
|
|
}
|
2018-03-09 19:09:33 +00:00
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|