ae69000001
* arduino and antiword is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
39 lines
1.5 KiB
Bash
39 lines
1.5 KiB
Bash
# Template file for 'avidemux'
|
|
pkgname=avidemux
|
|
version=2.7.6
|
|
revision=1
|
|
# Can't be compiled for aarch64, arm* or mips*
|
|
archs="x86_64* i686*"
|
|
wrksrc="${pkgname}_${version}"
|
|
hostmakedepends="cmake pkg-config qt5-host-tools qt5-devel tar yasm"
|
|
makedepends="alsa-lib-devel faac-devel faad2-devel gettext-devel jack-devel glu-devel
|
|
lame-devel libass-devel libdca-devel libvorbis-devel libXv-devel
|
|
vapoursynth-devel libmp4v2-devel sqlite-devel libva-devel libvdpau-devel
|
|
qt5-multimedia-devel qt5-script-devel qt5-tools-devel ffmpeg-devel
|
|
liba52-devel libmad-devel x264-devel x265-devel xvidcore-devel"
|
|
depends="python"
|
|
short_desc="Video editing and processing application"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://avidemux.sourceforge.net/"
|
|
changelog="http://avidemux.sourceforge.net/news.html"
|
|
distfiles="${SOURCEFORGE_SITE}/avidemux/avidemux/${version}/${pkgname}_${version}.tar.gz"
|
|
checksum=9a88741f3535443d4bde35d4207ca2ff96d3b136db2e7232cb50dd6b4eb293cf
|
|
|
|
do_configure() {
|
|
MAKEFLAGS=${makejobs} \
|
|
bash bootStrap.bash \
|
|
--with-system-libass \
|
|
--with-system-liba52 \
|
|
--with-system-libmad \
|
|
--with-system-libmp4v2 \
|
|
${cross_compile}
|
|
}
|
|
do_install() {
|
|
mv install/usr/lib{${XBPS_TARGET_WORDSIZE},}
|
|
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
|
|
vinstall appImage/avidemux.desktop 644 usr/share/applications
|
|
}
|