[arch-commits] Commit in x264/repos (4 files)

Maxime Gauduin alucryd at archlinux.org
Sun May 7 10:19:36 UTC 2017


    Date: Sunday, May 7, 2017 @ 10:19:36
  Author: alucryd
Revision: 295405

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  x264/repos/testing-i686/
  x264/repos/testing-i686/PKGBUILD
    (from rev 295404, x264/trunk/PKGBUILD)
  x264/repos/testing-x86_64/
  x264/repos/testing-x86_64/PKGBUILD
    (from rev 295404, x264/trunk/PKGBUILD)

-------------------------+
 testing-i686/PKGBUILD   |   84 ++++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD |   84 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 168 insertions(+)

Copied: x264/repos/testing-i686/PKGBUILD (from rev 295404, x264/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2017-05-07 10:19:36 UTC (rev 295405)
@@ -0,0 +1,84 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+# Contributor: Paul Mattal <paul at archlinux.org>
+
+pkgname=('x264' 'libx264' 'libx264-10bit')
+pkgver=148.20170121
+pkgrel=2
+epoch=2
+arch=('i686' 'x86_64')
+url='http://www.videolan.org/developers/x264.html'
+license=('GPL')
+depends=('glibc')
+makedepends=('yasm' 'git' 'ffmpeg' 'l-smash')
+_commit='97eaef2ab82a46d13ea5e00270712d6475fbe42b'
+source=("git://git.videolan.org/x264.git#commit=${_commit}")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd ${pkgbase}
+
+  local _ver=$(grep '#define X264_BUILD' x264.h | cut -d' ' -f3)
+  local _date=$(git log -1 --format="%cd" --date=short | tr -d -)
+
+  echo ${_ver}.${_date}
+}
+
+prepare() {
+  cp -r ${pkgbase} ${pkgbase}-10bit
+}
+
+build() {
+  cd ${pkgbase}
+
+  ./configure \
+    --prefix='/usr' \
+    --enable-shared \
+    --enable-pic
+  make
+
+  cd ../${pkgbase}-10bit
+
+  ./configure \
+    --prefix='/usr' \
+    --enable-shared \
+    --enable-pic \
+    --bit-depth='10'
+  make
+}
+
+package_x264() {
+  pkgdesc='CLI tools for encoding H264/AVC video streams'
+  depends+=('libavcodec.so' 'libavformat.so' 'libavutil.so' 'liblsmash.so'
+            'libswscale.so')
+  provides=('x264-10bit')
+  conflicts=('x264-10bit')
+
+  make -C ${pkgbase}-10bit DESTDIR="${pkgdir}" install-cli
+  rename x264 x264-10bit "${pkgdir}"/usr/bin/*
+  make -C ${pkgbase} DESTDIR="${pkgdir}" install-cli
+}
+
+package_libx264() {
+  pkgdesc='Library for encoding H264/AVC video streams'
+  provides=('libx264.so' 'libx264-10bit.so')
+
+  install -dm 755 "${pkgdir}"/usr/lib
+  make -C ${pkgbase}-10bit DESTDIR="${pkgdir}" install-lib-shared
+  rename x264 x264-10bit "${pkgdir}"/usr/lib/*
+  make -C ${pkgbase} DESTDIR="${pkgdir}" install-lib-shared
+}
+
+package_libx264-10bit() {
+  pkgdesc='Library for encoding H264/AVC video streams (10bit-depth)'
+  provides=('libx264' 'libx264.so')
+  conflicts=('libx264')
+
+  install -dm 755 "${pkgdir}"/usr/lib
+  make -C ${pkgbase}-10bit DESTDIR="${pkgdir}" install-lib-shared
+}
+
+# vim: ts=2 sw=2 et:

Copied: x264/repos/testing-x86_64/PKGBUILD (from rev 295404, x264/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2017-05-07 10:19:36 UTC (rev 295405)
@@ -0,0 +1,84 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+# Contributor: Paul Mattal <paul at archlinux.org>
+
+pkgname=('x264' 'libx264' 'libx264-10bit')
+pkgver=148.20170121
+pkgrel=2
+epoch=2
+arch=('i686' 'x86_64')
+url='http://www.videolan.org/developers/x264.html'
+license=('GPL')
+depends=('glibc')
+makedepends=('yasm' 'git' 'ffmpeg' 'l-smash')
+_commit='97eaef2ab82a46d13ea5e00270712d6475fbe42b'
+source=("git://git.videolan.org/x264.git#commit=${_commit}")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd ${pkgbase}
+
+  local _ver=$(grep '#define X264_BUILD' x264.h | cut -d' ' -f3)
+  local _date=$(git log -1 --format="%cd" --date=short | tr -d -)
+
+  echo ${_ver}.${_date}
+}
+
+prepare() {
+  cp -r ${pkgbase} ${pkgbase}-10bit
+}
+
+build() {
+  cd ${pkgbase}
+
+  ./configure \
+    --prefix='/usr' \
+    --enable-shared \
+    --enable-pic
+  make
+
+  cd ../${pkgbase}-10bit
+
+  ./configure \
+    --prefix='/usr' \
+    --enable-shared \
+    --enable-pic \
+    --bit-depth='10'
+  make
+}
+
+package_x264() {
+  pkgdesc='CLI tools for encoding H264/AVC video streams'
+  depends+=('libavcodec.so' 'libavformat.so' 'libavutil.so' 'liblsmash.so'
+            'libswscale.so')
+  provides=('x264-10bit')
+  conflicts=('x264-10bit')
+
+  make -C ${pkgbase}-10bit DESTDIR="${pkgdir}" install-cli
+  rename x264 x264-10bit "${pkgdir}"/usr/bin/*
+  make -C ${pkgbase} DESTDIR="${pkgdir}" install-cli
+}
+
+package_libx264() {
+  pkgdesc='Library for encoding H264/AVC video streams'
+  provides=('libx264.so' 'libx264-10bit.so')
+
+  install -dm 755 "${pkgdir}"/usr/lib
+  make -C ${pkgbase}-10bit DESTDIR="${pkgdir}" install-lib-shared
+  rename x264 x264-10bit "${pkgdir}"/usr/lib/*
+  make -C ${pkgbase} DESTDIR="${pkgdir}" install-lib-shared
+}
+
+package_libx264-10bit() {
+  pkgdesc='Library for encoding H264/AVC video streams (10bit-depth)'
+  provides=('libx264' 'libx264.so')
+  conflicts=('libx264')
+
+  install -dm 755 "${pkgdir}"/usr/lib
+  make -C ${pkgbase}-10bit DESTDIR="${pkgdir}" install-lib-shared
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list