```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
859 B
Bash
28 lines
859 B
Bash
# Template file for 'ngspice'
|
|
pkgname=ngspice
|
|
version=33
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--with-readline=yes --with-ngshared --enable-xspice --enable-cider"
|
|
hostmakedepends="bison byacc"
|
|
makedepends="readline-devel libX11-devel libXaw-devel"
|
|
short_desc="Mixed Mode Mixed Level Circuit Simulator based on Spice3F5"
|
|
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="http://ngspice.sourceforge.net"
|
|
distfiles="${SOURCEFORGE_SITE}/ngspice/ng-spice-rework/${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=b99db66cc1c57c44e9af1ef6ccb1dcbc8ae1df3e35acf570af578f606f8541f1
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|
|
|
|
ngspice-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|