summaryrefslogtreecommitdiff
path: root/libre/avidemux
diff options
context:
space:
mode:
Diffstat (limited to 'libre/avidemux')
-rw-r--r--libre/avidemux/PKGBUILD23
1 files changed, 12 insertions, 11 deletions
diff --git a/libre/avidemux/PKGBUILD b/libre/avidemux/PKGBUILD
index f6155dacf..f77f7151f 100644
--- a/libre/avidemux/PKGBUILD
+++ b/libre/avidemux/PKGBUILD
@@ -5,7 +5,7 @@
pkgbase=avidemux
pkgname=('avidemux-cli' 'avidemux-qt')
pkgver=2.6.14
-pkgrel=1.parabola1
+pkgrel=2.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')
@@ -21,6 +21,9 @@ sha512sums=('c940850df93e77b3176850cfdd7851c1e133835802a2bc979a497d825d85ca2fd39
prepare() {
cd ${pkgbase}_${pkgver}
sed -i 's|../avidemux/qt4|../avidemux/qt4 -DLRELEASE_EXECUTABLE=/usr/bin/lrelease-qt5|' bootStrap.bash
+ cp avidemux2.desktop avidemux-qt.desktop
+ sed -ri 's|(Name=).*|\1avidemux (Qt)|' avidemux-qt.desktop
+ sed -ri 's|(Exec=).*|\1avidemux3_qt5|' avidemux-qt.desktop
}
build() {
@@ -45,13 +48,13 @@ package_avidemux-cli() {
'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)
+ make -C buildCli DESTDIR="${pkgdir}" install
+ make -C buildCore DESTDIR="${pkgdir}" install
+ make -C buildPluginsCLI DESTDIR="${pkgdir}" install
+ make -C buildPluginsCommon 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"
+ install -Dm 644 man/avidemux.1 -t "${pkgdir}/usr/share/man/man1"
}
package_avidemux-qt() {
@@ -60,11 +63,9 @@ package_avidemux-qt() {
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"
+ make -C buildQt5 DESTDIR="${pkgdir}" install
+ make -C buildPluginsQt5 DESTDIR="${pkgdir}" install
+ install -Dm 644 avidemux-qt.desktop -t "${pkgdir}/usr/share/applications"
}
# vim: ts=2 sw=2 et: