[arch-commits] Commit in avidemux/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Sun Feb 25 21:47:56 UTC 2018


    Date: Sunday, February 25, 2018 @ 21:47:56
  Author: anthraxx
Revision: 317516

archrelease: copy trunk to staging-x86_64

Added:
  avidemux/repos/staging-x86_64/
  avidemux/repos/staging-x86_64/PKGBUILD
    (from rev 317515, avidemux/trunk/PKGBUILD)

----------+
 PKGBUILD |   76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)

Copied: avidemux/repos/staging-x86_64/PKGBUILD (from rev 317515, avidemux/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2018-02-25 21:47:56 UTC (rev 317516)
@@ -0,0 +1,76 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=avidemux
+pkgname=('avidemux-cli' 'avidemux-qt')
+pkgver=2.7.0
+pkgrel=5
+pkgdesc='Graphical tool to edit video (filter/re-encode/split)'
+url='http://fixounet.free.fr/avidemux/'
+arch=('x86_64')
+license=('GPL2')
+makedepends=('cmake' 'libxslt' 'qt5-base' 'jack' 'libvorbis' 'libxv' 'opus' 'desktop-file-utils'
+             'alsa-lib' 'lame' 'xvidcore' 'faad2' 'faac' 'x264' 'libx264' 'x265' 'libsamplerate'
+             'opencore-amr' 'yasm' 'mesa' 'libvpx' 'libpulse' 'libva' 'intltool' 'sqlite'
+             'libvdpau' 'libdca' 'fribidi' 'glu' 'qt5-tools' 'twolame' 'libfdk-aac' 'libass')
+options=('!emptydirs')
+source=(https://downloads.sourceforge.net/avidemux/avidemux_${pkgver}.tar.gz)
+sha256sums=('fe1d6b794c0d94922428ff84a931264a90c39a5ffe965e03ab7ae0ce71a2c4ad')
+sha512sums=('7c92213d3bd2849dbdb5a1aff2acd6da231fd76c561b756fbf4a1d5a41e9705d609d7a35b6ca6b77ceb3bf5138f861cd24ed16d8fcec4fd713f09a2ff07e9015')
+
+prepare() {
+  cd ${pkgbase}_${pkgver}
+  sed -i 's|../avidemux/qt4|../avidemux/qt4 -DLRELEASE_EXECUTABLE=/usr/bin/lrelease-qt5|' bootStrap.bash
+  sed -e 's|0.19|1.0|' -i avidemux_plugins/ADM_videoFilters6/ass/CMakeLists.txt
+  cp avidemux2.desktop avidemux-qt.desktop
+  sed -ri 's|(Name=).*|\1avidemux (Qt)|' avidemux-qt.desktop
+  sed -ri 's|(Exec=).*|\1avidemux3_qt5|' avidemux-qt.desktop
+}
+
+build() {
+  cd ${pkgbase}_${pkgver}
+  bash bootStrap.bash --with-core --with-cli --with-plugins
+}
+
+package_avidemux-cli() {
+  depends=('libxml2' 'fontconfig' 'sqlite' 'libvpx' 'libva' 'libvdpau')
+  optdepends=('lame: for the corresponding audio encoder plugin'
+              'faac: for the corresponding audio encoder plugin'
+              'faad2: for the corresponding audio decoder plugin'
+              'opus: for the corresponding audio decoder plugin'
+              'opencore-amr: for the corresponding audio decoder plugin'
+              'jack: for the corresponding audio device plugin'
+              'libpulse: for the corresponding audio device plugin'
+              'x264: for the corresponding video encoder plugin'
+              'libx264: for the corresponding video encoder plugin'
+              'x265: for the corresponding video encoder plugin'
+              'xvidcore: for the corresponding video encoder plugin'
+              'qt5-base: for the QtScript scripting support'
+              'libdca: for the corresponding audio decoder plugin'
+              'libfdk-aac: for the corresponding audio decoder plugin'
+              'twolame: for the corresponding audio decoder plugin'
+              'libass: for the corresponding video filter plugin'
+              'fribidi: for the corresponding video filter plugin')
+
+  cd ${pkgbase}_${pkgver}
+  make -C buildCli DESTDIR="${pkgdir}" install
+  make -C buildCore DESTDIR="${pkgdir}" install
+  make -C buildPluginsCLI DESTDIR="${pkgdir}" install
+  make -C buildPluginsCommon DESTDIR="${pkgdir}" install
+
+  install -Dm 644 avidemux_icon.png "${pkgdir}/usr/share/pixmaps/avidemux.png"
+  install -Dm 644 man/avidemux.1 -t "${pkgdir}/usr/share/man/man1"
+}
+
+package_avidemux-qt() {
+  pkgdesc='Graphical tool to edit video (filter/re-encode/split) - Qt GUI'
+  depends=("avidemux-cli=${pkgver}" 'qt5-base' 'x264' 'x265' 'libx264' 'glu' 'libxv' 'desktop-file-utils')
+  replaces=('avidemux-gtk')
+
+  cd ${pkgbase}_${pkgver}
+  make -C buildQt5 DESTDIR="${pkgdir}" install
+  make -C buildPluginsQt5 DESTDIR="${pkgdir}" install
+  install -Dm 644 avidemux-qt.desktop -t "${pkgdir}/usr/share/applications"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list