2fd8d4df94
```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 ```
27 lines
993 B
Bash
27 lines
993 B
Bash
# Template file for 'ogmrip'
|
|
pkgname=ogmrip
|
|
version=1.0.1
|
|
revision=9
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="intltool pkg-config"
|
|
makedepends="dbus-glib-devel enca-devel enchant2-devel lame-devel
|
|
libdvdread-devel libglade-devel libnotify-devel libtheora-devel mplayer
|
|
vorbis-tools x264-devel xvidcore-devel"
|
|
depends="desktop-file-utils mplayer vorbis-tools ogmtools mkvtoolnix tesseract-ocr"
|
|
short_desc="Application to rip and encode DVDs into AVI, OGM, MP4, or Matroska"
|
|
maintainer="Martin Riese <grauehaare@gmx.de>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="http://ogmrip.sourceforge.net/en/index.html"
|
|
distfiles="${SOURCEFORGE_SITE}/ogmrip/ogmrip/${version%.*}/${version}/ogmrip-${version}.tar.gz"
|
|
checksum=4e2e9778ac4da9fe1ab159e3dc6d4367b7a9dbd8f3501df99733ecedb25b02ff
|
|
|
|
pre_configure() {
|
|
sed -i 's/enchant >=/enchant-2 >=/' configure
|
|
}
|
|
|
|
post_install() {
|
|
# Remove development stuff.
|
|
rm -r ${DESTDIR}/usr/include
|
|
rm -r ${DESTDIR}/usr/lib/pkgconfig
|
|
}
|