* par is kept at -Np0 ```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 ```
23 lines
713 B
Bash
23 lines
713 B
Bash
# Template file for 'projectlibre'
|
|
pkgname=projectlibre
|
|
version=1.9.2
|
|
revision=2
|
|
depends="virtual?java-runtime virtual?awk"
|
|
short_desc="Open source project management (replacement for MS project)"
|
|
maintainer="Piraty <piraty1@inbox.ru>"
|
|
license="CPAL-1.0"
|
|
homepage="https://www.projectlibre.com/"
|
|
distfiles="${SOURCEFORGE_SITE}/projectlibre/${version}/projectlibre-${version}.tar.gz"
|
|
checksum=58160173ecb384d988a398b7fe5400fc9667209aab2dedc21f5445f4f88f09c4
|
|
|
|
do_install() {
|
|
_dest="usr/share/projectlibre"
|
|
vmkdir $_dest/lib
|
|
vcopy projectlibre.jar "$_dest"
|
|
vcopy "lib/*" "$_dest/lib"
|
|
|
|
vbin projectlibre.sh projectlibre
|
|
|
|
vlicense license/license.txt
|
|
vcopy license/third-party usr/share/licenses/projectlibre
|
|
}
|