2013-03-14 23:11:57 +08:00
|
|
|
# Maintainer: (abveritas[at]chakra-project[dot]org>
|
2010-07-19 19:35:51 +08:00
|
|
|
|
|
|
|
pkgbase=avidemux
|
|
|
|
pkgname=('avidemux-cli' 'avidemux')
|
2013-03-14 23:11:57 +08:00
|
|
|
pkgver=2.6.2
|
|
|
|
pkgrel=1
|
2011-01-22 08:23:30 +08:00
|
|
|
pkgdesc='Simple video editor for cutting, filtering and encoding tasks.'
|
2012-11-25 02:12:40 +08:00
|
|
|
arch=('x86_64')
|
2010-07-19 19:35:51 +08:00
|
|
|
license=('GPL')
|
|
|
|
url="http://fixounet.free.fr/avidemux/"
|
2012-09-07 23:22:49 +08:00
|
|
|
screenshot="http://upload.wikimedia.org/wikipedia/commons/7/77/Avidemux_Screenshot_Qt.png"
|
2013-03-14 23:11:57 +08:00
|
|
|
makedepends=('cmake' 'libxslt' 'qt' 'jack' 'libvorbis' 'sdl' 'libxv' 'alsa-lib' 'lame' 'xvidcore'
|
|
|
|
'faad2' 'faac' 'x264' 'libsamplerate' 'opencore-amr' 'yasm' 'mesa' 'libvpx'
|
|
|
|
'pulseaudio' 'libva' 'desktop-file-utils')
|
2012-03-16 22:51:37 +08:00
|
|
|
categories=('multimedia')
|
2012-09-07 23:22:49 +08:00
|
|
|
options=("!makeflags")
|
2012-11-29 08:11:28 +08:00
|
|
|
source=("http://downloads.sourceforge.net/avidemux/avidemux_${pkgver}.tar.gz")
|
2013-03-14 23:11:57 +08:00
|
|
|
md5sums=('642862929f2f611a4e54d7a93d512948')
|
2010-10-26 08:22:47 +08:00
|
|
|
|
2010-07-19 19:35:51 +08:00
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgbase}_${pkgver}"
|
2013-03-14 23:11:57 +08:00
|
|
|
# build
|
|
|
|
bash ./bootStrap.bash --with-core \
|
|
|
|
--with-cli \
|
|
|
|
--with-qt4 \
|
|
|
|
--without-gtk \
|
|
|
|
--with-plugins
|
2010-07-19 19:35:51 +08:00
|
|
|
|
2013-03-14 23:11:57 +08:00
|
|
|
# Create qm files
|
|
|
|
cd po
|
|
|
|
lrelease *.po
|
2010-07-19 19:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package_avidemux-cli() {
|
|
|
|
pkgdesc="A graphical tool to edit video (filter/re-encode/split)"
|
2011-01-22 08:23:30 +08:00
|
|
|
depends=('libxv' 'libxml2' 'sdl' 'fontconfig' 'libvpx')
|
2012-09-07 23:22:49 +08:00
|
|
|
optdepends=('lame: for the corresponding audio encoder plugin'
|
|
|
|
'faac: for the corresponding audio encoder plugin'
|
|
|
|
'faad2: for the corresponding audio decoder plugin'
|
|
|
|
'opencore-amr: for the corresponding audio decoder plugin'
|
|
|
|
'jack: for the corresponding audio device plugin'
|
2013-03-14 23:11:57 +08:00
|
|
|
'pulseaudio: for the corresponding audio device plugin'
|
2012-09-07 23:22:49 +08:00
|
|
|
'sdl: for the corresponding audio device plugin'
|
|
|
|
'x264: for the corresponding video encoder plugin'
|
2010-07-19 19:35:51 +08:00
|
|
|
'xvidcore: for the corresponding video encoder plugin')
|
|
|
|
|
2013-03-14 23:11:57 +08:00
|
|
|
cd "${srcdir}/${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 -D -m644 "${srcdir}/${pkgbase}_${pkgver}/avidemux_icon.png" "${pkgdir}/usr/share/pixmaps/avidemux.png"
|
|
|
|
install -D -m644 "${srcdir}/${pkgbase}_${pkgver}/man/avidemux.1" "${pkgdir}/usr/share/man/man1/avidemux.1"
|
2010-07-19 19:35:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package_avidemux() {
|
|
|
|
pkgdesc="A graphical tool to edit video (filter/re-encode/split)"
|
2013-03-14 23:11:57 +08:00
|
|
|
depends=('avidemux-cli' 'qt' 'mesa')
|
2010-07-19 19:35:51 +08:00
|
|
|
|
2012-11-29 08:11:28 +08:00
|
|
|
cd "${srcdir}/${pkgbase}_${pkgver}"
|
2013-03-14 23:11:57 +08:00
|
|
|
|
|
|
|
(cd buildQt4; make DESTDIR="${pkgdir}" install)
|
|
|
|
(cd buildPluginsQt4; make DESTDIR="${pkgdir}" install)
|
2010-07-19 19:35:51 +08:00
|
|
|
|
2013-03-14 23:11:57 +08:00
|
|
|
install -D -m644 avidemux2.desktop "${pkgdir}/usr/share/applications/avidemux-qt.desktop"
|
|
|
|
sed -i 's|2_gtk|3_qt4|' "${pkgdir}/usr/share/applications/avidemux-qt.desktop"
|
2010-07-19 19:35:51 +08:00
|
|
|
|
2013-03-14 23:11:57 +08:00
|
|
|
rm "${pkgdir}"/usr/lib/ADM_plugins6/pluginSettings/x264/1/{PSP.json,iPhone.json}
|
2010-07-19 19:35:51 +08:00
|
|
|
}
|