```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 ```
24 lines
722 B
Bash
24 lines
722 B
Bash
# Template file for 'libmygpo-qt'
|
|
pkgname=libmygpo-qt
|
|
version=1.1.0
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config qt5-qmake qt5-host-tools"
|
|
makedepends="qt5-devel"
|
|
short_desc="C++/Qt Client Library for gpodder.net"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://github.com/gpodder/libmygpo-qt"
|
|
distfiles="https://github.com/gpodder/libmygpo-qt/archive/${version}.tar.gz"
|
|
checksum=2eab976efbbdd39bae1b436e7dcd2ddffd35241432094f29b69308840a938459
|
|
|
|
libmygpo-qt-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/cmake
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|