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 ```
28 lines
732 B
Bash
28 lines
732 B
Bash
# Template file for 'libtecla'
|
|
pkgname=libtecla
|
|
version=1.6.3
|
|
revision=1
|
|
wrksrc=${pkgname}
|
|
build_style=gnu-configure
|
|
makedepends="ncurses-devel"
|
|
short_desc="Provides interactive command line editing facilities"
|
|
maintainer="bra1nwave <brainwave@openmailbox.org>"
|
|
license="MIT/X11"
|
|
homepage="http://www.astro.caltech.edu/~mcs/tecla"
|
|
distfiles="${homepage}/${pkgname}-${version}.tar.gz"
|
|
checksum=f2757cc55040859fcf8f59a0b7b26e0184a22bece44ed9568a4534a478c1ee1a
|
|
|
|
post_install() {
|
|
vlicense LICENSE.TERMS LICENSE
|
|
}
|
|
|
|
libtecla-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|