PKGBUILDs/extra/x265/PKGBUILD

53 lines
1.1 KiB
Bash
Raw Normal View History

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
2022-02-07 04:03:59 +00:00
# - don't build 12- and 10-bit variants
2014-03-30 04:59:56 +00:00
pkgname=x265
2021-03-23 14:04:59 +00:00
pkgver=3.5
2022-03-06 18:16:24 +00:00
pkgrel=3
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}
2022-02-07 04:03:59 +00:00
0001-arm-fixes.patch)
2018-10-08 16:07:35 +00:00
sha256sums=('SKIP'
2022-02-07 04:03:59 +00:00
'9a527deb44ed5be459519d1e6721020bcbcbe74e73896b59e6df3a62888f152c')
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
2022-02-07 04:03:59 +00:00
git apply ../0001-arm-fixes.patch
2014-03-30 04:59:56 +00:00
}
build() {
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 \
2022-02-07 04:03:59 +00:00
-DENABLE_SHARED=TRUE
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: