```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 ```
25 lines
849 B
Bash
25 lines
849 B
Bash
# Template file for 'transcode'
|
|
pkgname=transcode
|
|
version=1.1.7
|
|
revision=4
|
|
wrksrc=mojaves-transcode-tcforge-70badbfe3674
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="faac-devel ffmpeg-devel freetype-devel lame-devel
|
|
libdvdread-devel libjpeg-turbo-devel libmpeg2-devel libtheora-devel
|
|
libXaw-devel libxml2-devel libXv-devel lzo-devel SDL2-devel
|
|
xvidcore-devel"
|
|
short_desc="Modular utility for video stream processing"
|
|
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://bitbucket.org/mojaves/transcode-tcforge"
|
|
distfiles="https://bitbucket.org/mojaves/transcode-tcforge/get/release-1_1_7.tar.bz2"
|
|
checksum=4693e3f4226f48fb37c8ae9609601724e8a276ca09f8686ddb43f8a255d994fe
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
pre_configure() {
|
|
mkdir -p m4
|
|
mv configure.{in,ac}
|
|
autoreconf -fi
|
|
}
|