ec4c2d75fa
```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 ```
30 lines
750 B
Bash
30 lines
750 B
Bash
# Template file for 'Clp'
|
|
pkgname=Clp
|
|
version=1.17.3
|
|
revision=2
|
|
build_style=gnu-configure
|
|
depends="libClp>=${version}_${revision}"
|
|
short_desc="COIN LP Solver"
|
|
maintainer="nexolight <snow.dream.ch@gmail.com>"
|
|
license="EPL-1.0"
|
|
homepage="http://projects.coin-or.org/Clp"
|
|
distfiles="https://www.coin-or.org/Tarballs/${pkgname}/${pkgname}-${version}.tgz"
|
|
checksum=a13bf54291ad503cf76f5f93f2643d2add4faa5d0e60ff2db902ef715c094573
|
|
|
|
libClp-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="lib${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/coin
|
|
}
|
|
}
|
|
|
|
libClp_package() {
|
|
short_desc+=" - libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/lib*.so.*"
|
|
}
|
|
}
|