```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 ```
20 lines
567 B
Bash
20 lines
567 B
Bash
# Template file for 'jxrlib'
|
|
pkgname=jxrlib
|
|
version=0.2.2
|
|
revision=1
|
|
build_style=cmake
|
|
short_desc="Open source implementation of jpegxr"
|
|
maintainer="bra1nwave <bra1nwave@protonmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/glencoesoftware/jxrlib"
|
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
|
checksum=d1fbc5759a665949e7cb82de03c3258788bd07323f195a9e8ea9322504627cc3
|
|
|
|
jxrlib-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|