diff options
author | Maxime Gauduin | 2015-07-08 22:19:53 +0200 |
---|---|---|
committer | Maxime Gauduin | 2015-07-08 22:19:53 +0200 |
commit | 3eba0bf4a963c7943a63ac9248dbcdbf0075a1cb (patch) | |
tree | 7a10b279aa9b8c148dc799a65346da540b063569 | |
download | aur-3eba0bf4a963c7943a63ac9248dbcdbf0075a1cb.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | MKPKG | 5 | ||||
-rw-r--r-- | PKGBUILD | 99 | ||||
-rw-r--r-- | libx265_main10-soname.patch | 11 | ||||
-rw-r--r-- | libx265_main12-soname.patch | 11 |
5 files changed, 150 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cf5a1f7c3ff0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = x265-hg + pkgdesc = CLI tools for encoding H265/HEVC video streams. + pkgver = 1.7.r286.1162fb0b99f8 + pkgrel = 1 + url = https://bitbucket.org/multicoreware/x265 + arch = i686 + arch = x86_64 + license = GPL + makedepends = cmake + makedepends = mercurial + makedepends = yasm + depends = gcc-libs + provides = libx265 + provides = x265 + conflicts = x265 + source = hg+https://bitbucket.org/multicoreware/x265 + source = libx265_main10-soname.patch + source = libx265_main12-soname.patch + sha256sums = SKIP + sha256sums = 8cd78f04ef35c2edc3319da4c1d98a3273d23581cb8dc80b7a87f3a888831068 + sha256sums = 343364f7bd230b80c2e1d3e273616032392ddb3c5b97f0a6734e8222ed2cb938 + +pkgname = x265-hg + diff --git a/MKPKG b/MKPKG new file mode 100644 index 000000000000..4e2c251cfe9b --- /dev/null +++ b/MKPKG @@ -0,0 +1,5 @@ +pkgname=('x265-hg') + +check_hg $packagedir/x265-hg/x265 + +# vim: ts=2 sw=2 et: diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d317b5bffdce --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,99 @@ +# Maintainer: Maxime Gauduin <alucryd@archlinux.org> +# Contributor: kfgz <kfgz@interia.pl> +# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> + +pkgname=x265-hg +pkgver=1.7.r286.1162fb0b99f8 +pkgrel=1 +pkgdesc='CLI tools for encoding H265/HEVC video streams.' +arch=('i686' 'x86_64') +url='https://bitbucket.org/multicoreware/x265' +license=('GPL') +depends=('gcc-libs') +provides=('libx265' 'x265') +conflicts=('x265') +makedepends=('cmake' 'mercurial' 'yasm') +source=('hg+https://bitbucket.org/multicoreware/x265' + 'libx265_main10-soname.patch' + 'libx265_main12-soname.patch') +sha256sums=('SKIP' + '8cd78f04ef35c2edc3319da4c1d98a3273d23581cb8dc80b7a87f3a888831068' + '343364f7bd230b80c2e1d3e273616032392ddb3c5b97f0a6734e8222ed2cb938') + +pkgver() { + cd x265 + + echo "$(hg log -r. --template "{latesttag}").r$(hg log -r. --template "{latesttagdistance}").$(hg log -r. --template "{node|short}")" +} + +prepare() { + cp -r x265 x265-12bit + cp -r x265 x265-10bit + + cd x265-12bit + + patch -Np1 -i ../libx265_main12-soname.patch + + cd ../x265-10bit + + patch -Np1 -i ../libx265_main10-soname.patch +} + +build() { + cd x265-12bit + + if [[ -d build ]]; then + rm -rf build + fi + mkdir build && cd build + + cmake ../source \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DHIGH_BIT_DEPTH='TRUE' \ + -DMAIN12='TRUE' \ + -DENABLE_SHARED='TRUE' + make + + cd ../../x265-10bit + + if [[ -d build ]]; then + rm -rf build + fi + mkdir build && cd build + + cmake ../source \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DHIGH_BIT_DEPTH='TRUE' \ + -DENABLE_SHARED='TRUE' + make + + cd ../../x265 + + if [[ -d build ]]; then + rm -rf build + fi + mkdir build && cd build + + cmake ../source \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DENABLE_SHARED='TRUE' + make +} + +package() { + cd x265-12bit/build + + make DESTDIR="${pkgdir}" install + + cd ../../x265-10bit/build + + make DESTDIR="${pkgdir}" install + + cd ../../x265/build + + make DESTDIR="${pkgdir}" install + + rm -rf "${pkgdir}"/usr/lib/libx265.a +} + +# vim: ts=2 sw=2 et: diff --git a/libx265_main10-soname.patch b/libx265_main10-soname.patch new file mode 100644 index 000000000000..4761edb15507 --- /dev/null +++ b/libx265_main10-soname.patch @@ -0,0 +1,11 @@ +diff -rupN x265/source/CMakeLists.txt x265-10bit/source/CMakeLists.txt +--- x265/source/CMakeLists.txt 2015-06-11 09:46:35.227652244 +0200 ++++ x265-10bit/source/CMakeLists.txt 2015-06-11 09:55:15.561256669 +0200 +@@ -427,6 +427,7 @@ if(ENABLE_SHARED) + set_target_properties(x265-shared PROPERTIES OUTPUT_NAME x265) + endif() + if(UNIX) ++ set_target_properties(x265-shared PROPERTIES OUTPUT_NAME x265_main10) + set_target_properties(x265-shared PROPERTIES VERSION ${X265_BUILD}) + if(APPLE) + set_target_properties(x265-shared PROPERTIES MACOSX_RPATH 1) diff --git a/libx265_main12-soname.patch b/libx265_main12-soname.patch new file mode 100644 index 000000000000..335366f9a720 --- /dev/null +++ b/libx265_main12-soname.patch @@ -0,0 +1,11 @@ +diff -rupN x265/source/CMakeLists.txt x265-10bit/source/CMakeLists.txt +--- x265/source/CMakeLists.txt 2015-06-11 09:46:35.227652244 +0200 ++++ x265-10bit/source/CMakeLists.txt 2015-06-11 09:55:15.561256669 +0200 +@@ -427,6 +427,7 @@ if(ENABLE_SHARED) + set_target_properties(x265-shared PROPERTIES OUTPUT_NAME x265) + endif() + if(UNIX) ++ set_target_properties(x265-shared PROPERTIES OUTPUT_NAME x265_main12) + set_target_properties(x265-shared PROPERTIES VERSION ${X265_BUILD}) + if(APPLE) + set_target_properties(x265-shared PROPERTIES MACOSX_RPATH 1) |