desktop/avidemux/PKGBUILD

61 lines
2.5 KiB
Bash
Raw Normal View History

2010-07-19 19:35:51 +08:00
pkgbase=avidemux
pkgname=('avidemux-cli' 'avidemux')
2015-06-19 00:34:47 +08:00
pkgver=2.6.10
2015-07-30 17:51:40 +08:00
pkgrel=3
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"
2015-07-30 17:51:40 +08:00
makedepends=('cmake' 'libxslt' 'qt5-base' 'qt5-tools' 'qt5-script' 'qt5-multimedia' 'qt' 'jack' 'libvorbis' 'sdl' 'libxv' 'alsa-lib' 'lame'
2015-06-20 05:12:30 +08:00
'faad2' 'faac' 'x264' 'x265' 'libsamplerate' 'opencore-amr' 'yasm' 'mesa' 'libvpx' 'sqlite3' 'xvidcore'
2015-07-30 17:51:40 +08:00
'pulseaudio' 'libva' 'desktop-file-utils' 'libdca' 'fribidi' 'glu' 'aften' 'dcaenc' 'twolame' 'gettext')
categories=('multimedia')
2012-09-07 23:22:49 +08:00
options=("!makeflags")
source=("http://downloads.sourceforge.net/avidemux/avidemux_${pkgver}.tar.gz")
2015-06-19 00:34:47 +08:00
sha512sums=('f9414810925b2eeb0b6dc0094ac9a42809ab11274d2cd591eef753538d5719df893dc2352b85c8a1047b890bb03079678e6619af9bb25834a2428cfdae5005ef')
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 \
2015-05-18 20:04:00 +08:00
--enable-qt5 \
--without-gtk \
--with-plugins
2010-07-19 19:35:51 +08:00
# Create qm files
cd po
2015-05-18 20:04:00 +08:00
lrelease-qt5 *.po
2010-07-19 19:35:51 +08:00
}
package_avidemux-cli() {
2015-06-20 05:12:30 +08:00
pkgdesc="A graphical tool to edit video (filter/re-encode/split)- command line version"
depends=('faac' 'faad2' 'fontconfig' 'fribidi' 'jack' 'lame' 'libdca'
'pulseaudio' 'libva' 'libxv' 'libvpx' 'libxml2' 'opencore-amr' 'xvidcore'
'sdl' 'sqlite3' 'x264' 'x265' 'aften' 'dcaenc' 'twolame')
2015-06-20 05:12:30 +08:00
optdepends=('avidemux: graphical interface')
2010-07-19 19:35:51 +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)"
2015-05-18 20:04:00 +08:00
depends=('avidemux-cli' 'qt5-base' 'mesa')
2010-07-19 19:35:51 +08:00
cd "${srcdir}/${pkgbase}_${pkgver}"
2015-05-18 20:04:00 +08:00
(cd buildQt5; make DESTDIR="${pkgdir}" install)
(cd buildPluginsQt5; make DESTDIR="${pkgdir}" install)
2010-07-19 19:35:51 +08:00
install -D -m644 avidemux2.desktop "${pkgdir}/usr/share/applications/avidemux-qt.desktop"
2015-05-18 20:04:00 +08:00
sed -i 's|2_gtk|3_qt5|' "${pkgdir}/usr/share/applications/avidemux-qt.desktop"
2010-07-19 19:35:51 +08:00
}