desktop/avidemux/PKGBUILD

72 lines
2.8 KiB
Bash
Raw Normal View History

2013-12-10 15:07:03 +08:00
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# maintainer (abveritas[at]chakra-project[dot]org>
2010-07-19 19:35:51 +08:00
pkgbase=avidemux
pkgname=('avidemux-cli' 'avidemux')
2013-12-10 15:07:03 +08:00
pkgver=2.6.7
pkgrel=1
2011-01-22 08:23:30 +08:00
pkgdesc='Simple video editor for cutting, filtering and encoding tasks.'
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"
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')
categories=('multimedia')
2012-09-07 23:22:49 +08:00
options=("!makeflags")
source=("http://downloads.sourceforge.net/avidemux/avidemux_${pkgver}.tar.gz")
2013-12-10 15:07:03 +08:00
sha256sums=('d28202273d23be85c748c12d6e4df5e013bb861ea52b9bac7e0f90ba3d23249f')
2010-10-26 08:22:47 +08:00
2010-07-19 19:35:51 +08:00
build() {
cd "${srcdir}/${pkgbase}_${pkgver}"
# build
bash ./bootStrap.bash --with-core \
--with-cli \
--with-qt4 \
--without-gtk \
--with-plugins
2010-07-19 19:35:51 +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'
'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')
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)"
depends=('avidemux-cli' 'qt' 'mesa')
2010-07-19 19:35:51 +08:00
cd "${srcdir}/${pkgbase}_${pkgver}"
(cd buildQt4; make DESTDIR="${pkgdir}" install)
(cd buildPluginsQt4; make DESTDIR="${pkgdir}" install)
2010-07-19 19:35:51 +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-09-30 01:12:42 +08:00