# Maintainer (Arch): Levente Polyak # Maintainer (Arch): Eric Bélanger # Maintainer: André Silva pkgbase=avidemux pkgname=('avidemux-cli' 'avidemux-qt') pkgver=2.6.14 pkgrel=1.parabola1 pkgdesc='Graphical tool to edit video (filter/re-encode/split), without nonfree faac support' url='http://fixounet.free.fr/avidemux/' arch=('i686' 'x86_64') license=('GPL2') makedepends=('cmake' 'libxslt' 'qt5-base' 'jack' 'libvorbis' 'libxv' 'opus' 'desktop-file-utils' 'alsa-lib' 'lame' 'xvidcore' 'faad2' 'x264' 'libx264' 'x265' 'libsamplerate' 'opencore-amr' 'yasm' 'mesa' 'libvpx' 'libpulse' 'libva' 'intltool' 'sqlite' 'libvdpau' 'libdca' 'fribidi' 'glu' 'qt5-tools' 'pkg-config') options=('!emptydirs') source=(https://downloads.sourceforge.net/avidemux/avidemux_${pkgver}.tar.gz) sha512sums=('c940850df93e77b3176850cfdd7851c1e133835802a2bc979a497d825d85ca2fd394e2dc813242b9009f1b6ec2904f63163bd9afda9478be064518e4572449a1') prepare() { cd ${pkgbase}_${pkgver} sed -i 's|../avidemux/qt4|../avidemux/qt4 -DLRELEASE_EXECUTABLE=/usr/bin/lrelease-qt5|' bootStrap.bash } build() { cd ${pkgbase}_${pkgver} bash bootStrap.bash --with-core --with-cli --with-plugins } package_avidemux-cli() { depends=('libxml2' 'fontconfig' 'libvpx' 'libva' 'sqlite') optdepends=('lame: 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' 'fribidi: for the corresponding video filter plugin') cd ${pkgbase}_${pkgver} (cd buildCli; make DESTDIR="${pkgdir}" install) (cd buildCore; make DESTDIR="${pkgdir}" install) (cd buildPluginsCLI; make DESTDIR="${pkgdir}" install) (cd buildPluginsCommon; make DESTDIR="${pkgdir}" install) install -Dm 644 avidemux_icon.png "${pkgdir}/usr/share/pixmaps/avidemux.png" install -Dm 644 man/avidemux.1 "${pkgdir}/usr/share/man/man1/avidemux.1" } package_avidemux-qt() { pkgdesc='Graphical tool to edit video (filter/re-encode/split) - Qt GUI, without nonfree faac support' depends=("avidemux-cli=${pkgver}" 'qt5-base' 'x264' 'x265' 'libx264' 'glu' 'libxv' 'desktop-file-utils') replaces=('avidemux-gtk') cd ${pkgbase}_${pkgver} (cd buildQt5; make DESTDIR="${pkgdir}" install) (cd buildPluginsQt5; make DESTDIR="${pkgdir}" install) install -Dm 644 avidemux2.desktop "${pkgdir}/usr/share/applications/avidemux-qt.desktop" sed -i 's|gtk|qt5|' "${pkgdir}/usr/share/applications/avidemux-qt.desktop" } # vim: ts=2 sw=2 et: