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 ```
25 lines
751 B
Bash
25 lines
751 B
Bash
# Template file for 'libcprops'
|
|
pkgname=libcprops
|
|
version=0.1.12
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--disable-cpsp --disable-cpsvc"
|
|
hostmakedepends="flex makedepend which"
|
|
short_desc="C prototyping tools"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
homepage="http://cprops.sourceforge.net/"
|
|
license="LGPL-2.1"
|
|
distfiles="${SOURCEFORGE_SITE}/cprops/${pkgname}-${version}.tar.bz2"
|
|
checksum=3737772d2718a2c550adf4ca92cc492e613aa9200aae2bbaaf128d90f4ef67f2
|
|
nocross="autotools TRY_RUN checking for PTHREAD_MUTEX_RECURSIVE"
|
|
|
|
libcprops-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/share
|
|
}
|
|
}
|