mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
54 lines
2.6 KiB
Bash
54 lines
2.6 KiB
Bash
# $Id: PKGBUILD 49966 2009-08-18 00:50:20Z eric $
|
|
# Maintainer: Eric Belanger <eric@archlinux.org>
|
|
# Contributor: damir <damir@archlinux.org>
|
|
|
|
pkgname=avidemux
|
|
pkgver=2.5.1
|
|
pkgrel=1
|
|
pkgdesc="A graphical tool to edit video (filter/re-encode/split)"
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL')
|
|
url="http://fixounet.free.fr/avidemux/"
|
|
depends=('libxv' 'libxml2' 'sdl')
|
|
makedepends=('cmake' 'libxslt' 'gtk2' 'qt' 'jack-audio-connection-kit' 'esound' 'libvorbis' \
|
|
'alsa-lib' 'lame' 'xvidcore' 'faad2' 'faac' 'x264' 'libsamplerate')
|
|
optdepends=('gtk2: for using the GTK GUI' \
|
|
'qt: for using the QT4 GUI' \
|
|
'lame, faac: for the corresponding audio encoder plugin' \
|
|
'faad2 : for the corresponding audio decoder plugin' \
|
|
'esound, jack-audio-connection-kit: for the corresponding audio device plugin' \
|
|
'x264, xvidcore: for the corresponding video encoder plugin')
|
|
source=(http://downloads.sourceforge.net/avidemux/avidemux_2.5.1.tar.gz avidemux-2.5-i18n.patch)
|
|
md5sums=('081db3af87f1f93c7b4e5d5975e07e40' '0adb7cee81e06bfc454baf1d8fbcdd64')
|
|
sha1sums=('50fe78548e0ebf0611d23aa4755f332056520392' 'd510ca55cd1b9c162b4c3bcd224a80b6a18421ef')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}_${pkgver}"
|
|
patch -p1 < ../avidemux-2.5-i18n.patch || return 1
|
|
mkdir build
|
|
cd build
|
|
cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release -D NO_GTK=0 -D NO_QT4=0 .. || return 1
|
|
make || return 1
|
|
make DESTDIR="${pkgdir}" install || return 1
|
|
|
|
# plugin build expects libraries to be already installed; we fake a prefix
|
|
# in build/ by symlinking all libraries to build/lib/
|
|
mkdir -p lib
|
|
cd lib
|
|
find ../avidemux -name '*.so*' | xargs ln -sft . || return 1
|
|
cd ../../plugins
|
|
mkdir build
|
|
cd build
|
|
cmake -D CMAKE_INSTALL_PREFIX=/usr -D AVIDEMUX_SOURCE_DIR=${srcdir}/avidemux_${pkgver} \
|
|
-D AVIDEMUX_CORECONFIG_DIR=${srcdir}/avidemux_${pkgver}/build/config \
|
|
-D AVIDEMUX_INSTALL_PREFIX=${srcdir}/avidemux_${pkgver}/build -D CMAKE_BUILD_TYPE=Release .. || return 1
|
|
make || return 1
|
|
make DESTDIR="${pkgdir}" install || return 1
|
|
|
|
ln -s /usr/lib/ADM_plugins/videoEncoder/libADM_vidEnc_xvid.so "${pkgdir}/usr/lib/libADM_vidEnc_xvid.so"
|
|
ln -s /usr/lib/ADM_plugins/videoEncoder/libADM_vidEnc_x264.so "${pkgdir}/usr/lib/libADM_vidEnc_x264.so"
|
|
|
|
install -D -m644 ../../avidemux_icon.png "${pkgdir}/usr/share/pixmaps/avidemux.png" || return 1
|
|
install -D -m644 ../../avidemux2.desktop "${pkgdir}/usr/share/applications/avidemux.desktop" || return 1
|
|
install -D -m644 ../../man/avidemux.1 "${pkgdir}/usr/share/man/man1/avidemux.1" || return 1
|
|
}
|