* gcc is kept at -Np0, because of void-cross ```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 ```
27 lines
755 B
Bash
27 lines
755 B
Bash
# Template file for 'gsl'
|
|
pkgname=gsl
|
|
version=2.6
|
|
revision=1
|
|
build_style=gnu-configure
|
|
short_desc="A numerical library for C and C++ programmers"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://www.gnu.org/software/gsl/gsl.html"
|
|
distfiles="${GNU_SITE}/gsl/${pkgname}-${version}.tar.gz"
|
|
checksum=b782339fc7a38fe17689cb39966c4d821236c28018b6593ddb6fd59ee40786a8
|
|
|
|
gsl-devel_package() {
|
|
depends="gsl>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin/gsl-config
|
|
vmove usr/share/man/man1/gsl-config.1
|
|
vmove usr/share/man/man3
|
|
vmove usr/share/aclocal
|
|
vmove usr/share/info
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|