PKGBUILDs/extra/x265/PKGBUILD

46 lines
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
2024-06-21 23:05:26 +00:00
pkgver=3.6
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)
2024-06-21 23:05:26 +00:00
_tag=aa7f602f7592eddb9d87749be7466da005b556ee
2024-06-21 23:39:23 +00:00
source=(git+https://bitbucket.org/multicoreware/x265_git#tag=${_tag})
sha256sums=('31887d9871b7916dabe8bc4c71a5daf23ae109cdc677efaa258d2d19086cb67b')
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
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: