summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD57
2 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cd0f6f338c4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = x265-git
+ pkgdesc = Open source H.265/HEVC video encoder (git version)
+ pkgver = 3.5.r13.g0983cffc5
+ pkgrel = 1
+ url = https://bitbucket.org/multicoreware/x265_git
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = cmake
+ makedepends = nasm
+ depends = gcc-libs
+ provides = x265
+ provides = libx265.so
+ conflicts = x265
+ source = git+https://bitbucket.org/multicoreware/x265_git.git
+ sha256sums = SKIP
+
+pkgname = x265-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..929ca1739d0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,57 @@
+# Maintainer : Daniel Bermond <dbermond@archlinux.org>
+
+pkgname=x265-git
+pkgver=3.5.r13.g0983cffc5
+pkgrel=1
+pkgdesc='Open source H.265/HEVC video encoder (git version)'
+arch=('x86_64')
+url='https://bitbucket.org/multicoreware/x265_git'
+license=('GPL')
+depends=('gcc-libs')
+makedepends=('git' 'cmake' 'nasm')
+provides=('x265' 'libx265.so')
+conflicts=('x265')
+source=('git+https://bitbucket.org/multicoreware/x265_git.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ git -C x265_git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
+}
+
+build() {
+ cmake -S x265_git/source -B build-12 \
+ -DCMAKE_INSTALL_PREFIX='/usr' \
+ -DHIGH_BIT_DEPTH='ON' \
+ -DMAIN12='ON' \
+ -DEXPORT_C_API='OFF' \
+ -DENABLE_CLI='OFF' \
+ -DENABLE_SHARED='OFF' \
+ -Wno-dev
+ make -C build-12
+
+ cmake -S x265_git/source -B build-10 \
+ -DCMAKE_INSTALL_PREFIX='/usr' \
+ -DHIGH_BIT_DEPTH='ON' \
+ -DEXPORT_C_API='OFF' \
+ -DENABLE_CLI='OFF' \
+ -DENABLE_SHARED='OFF' \
+ -Wno-dev
+ make -C build-10
+
+ cmake -S x265_git/source -B build \
+ -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
+ -DENABLE_SHARED='ON' \
+ -DENABLE_HDR10_PLUS='ON' \
+ -DEXTRA_LIB='x265_main10.a;x265_main12.a' \
+ -DEXTRA_LINK_FLAGS='-L.' \
+ -DLINKED_10BIT='ON' \
+ -DLINKED_12BIT='ON' \
+ -Wno-dev
+ ln -s ../build-10/libx265.a build/libx265_main10.a
+ ln -s ../build-12/libx265.a build/libx265_main12.a
+ make -C build
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+}