```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 ```
32 lines
947 B
Bash
32 lines
947 B
Bash
# Template file for 'smpeg'
|
|
pkgname=smpeg
|
|
version=0.4.5
|
|
revision=5
|
|
build_style=gnu-configure
|
|
configure_args="--with-sdl-prefix=${XBPS_CROSS_BASE}/usr --disable-gtk-player --disable-opengl-player"
|
|
make_build_args="LDFLAGS+=-lstdc++"
|
|
makedepends="SDL-devel"
|
|
short_desc="SDL MPEG Player Library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-only"
|
|
homepage="https://icculus.org/smpeg/"
|
|
distfiles="ftp://slackware.oregonstate.edu/.1/vectorlinux/VL64-7.0/source/sourceVL/smpeg/${version}/src/smpeg-${version}.tar.gz"
|
|
checksum=1839c12e88d5dbbc767a7b94eeab2aa3efe4f0eebb7eb7c7240270ba93689a2b
|
|
|
|
post_install() {
|
|
# Remove unused stuff
|
|
rm -rf ${DESTDIR}/usr/share/man
|
|
rm -f ${DESTDIR}/usr/bin/plaympeg
|
|
}
|
|
|
|
smpeg-devel_package() {
|
|
depends="SDL-devel smpeg>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share
|
|
}
|
|
}
|