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 ```
31 lines
855 B
Bash
31 lines
855 B
Bash
# Template file for 'libuninum'
|
|
pkgname=libuninum
|
|
version=2.7
|
|
revision=1
|
|
build_style=gnu-configure
|
|
makedepends="gmp-devel"
|
|
short_desc="Library for converting between numbers and strings"
|
|
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
|
license="LGPL-2.1-only"
|
|
homepage="http://billposer.org/Software/libuninum.html"
|
|
distfiles="http://billposer.org/Software/Downloads/libuninum-${version}.tar.bz2"
|
|
checksum=e704983c3c00e9b76bd836b8b83ce31bfe4eb1752eee8be123cf97c1275076ea
|
|
|
|
libuninum-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|
|
|
|
numconv_package() {
|
|
short_desc="Utility for converting between numbers and strings"
|
|
license="GPL-2.0-only"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/share
|
|
}
|
|
}
|