void-packages/srcpkgs/avidemux/template
2016-09-20 06:49:42 +02:00

40 lines
1.4 KiB
Bash

# Template file for 'avidemux'
pkgname=avidemux
version=2.6.14
revision=1
wrksrc="${pkgname}_${version}"
hostmakedepends="cmake pkg-config qt5-qmake yasm"
# XXX: MesaLib-devel, libva-devel, libvdpau-devel, etc. and make display output work
makedepends="faac-devel faad2-devel gettext-devel jack-devel
lame-devel libass-devel libdca-devel libvorbis-devel libvpx-devel libXv-devel
sqlite-devel qt5-multimedia-devel qt5-script-devel qt5-tools-devel
SDL-devel x264-devel x265-devel xvidcore-devel"
depends="python"
nocross=yes
short_desc="Video editing and processing application"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2"
homepage="http://avidemux.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/avidemux/avidemux/${version}/${pkgname}_${version}.tar.gz"
checksum=3f302ed6e011019ba20ec652090305317617483b74905f877e0e63b313ab629e
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="Internal compiler error in src/libavcodec/hevcdsp_template.c"
esac
do_build() {
MAKEFLAGS=${makejobs} \
bash bootStrap.bash --without-gtk
}
do_install() {
# Remove Windows stuff
cp -aR install/usr ${DESTDIR}
ln -s avidemux3_qt5 ${DESTDIR}/usr/bin/avidemux
vman man/avidemux.1
vinstall avidemux_icon.png 644 usr/share/pixmaps avidemux.png
sed avidemux2.desktop \
-e "s;avidemux2;avidemux3;g" \
-e "s;_gtk;_qt5;g" \
> avidemux.desktop
vinstall avidemux.desktop 644 usr/share/applications
}