861ac185a6
```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
847 B
Bash
32 lines
847 B
Bash
# Template file for 'libvidstab'
|
|
pkgname=libvidstab
|
|
version=1.1.0
|
|
revision=1
|
|
wrksrc=vid.stab-${version}
|
|
build_style=cmake
|
|
short_desc="Video stabilization library"
|
|
maintainer="lemmi <lemmi@nerd2nerd.org>"
|
|
makedepends="orc-devel libgomp-devel"
|
|
license="GPL-2"
|
|
homepage="http://public.hronopik.de/vid.stab/"
|
|
distfiles="https://github.com/georgmartius/vid.stab/archive/v${version}.tar.gz"
|
|
checksum=14d2a053e56edad4f397be0cb3ef8eb1ec3150404ce99a426c4eb641861dc0bb
|
|
|
|
pre_configure() {
|
|
sed -i -e 's/include (FindSSE)//' CMakeLists.txt
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*)
|
|
configure_args+=" -DSSE2_FOUND=1"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
libvidstab-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} libgomp-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|