```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 ```
26 lines
817 B
Bash
26 lines
817 B
Bash
# Template file for 'injeqt'
|
|
pkgname=injeqt
|
|
version=1.2.0
|
|
revision=2
|
|
build_style=cmake
|
|
configure_args="-DDISABLE_COVERAGE=ON"
|
|
hostmakedepends="pkg-config qt5-qmake qt5-host-tools"
|
|
makedepends="qt5-devel"
|
|
short_desc="Dependency injection framework for Qt"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://github.com/vogel/injeqt/"
|
|
distfiles="https://github.com/vogel/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
|
checksum=77540cedb0b26affe993dd18124d796059e34c80a51d9ae6433fdff1860db135
|
|
|
|
CXXFLAGS="-fno-lifetime-dse -Wno-error=cast-align"
|
|
|
|
injeqt-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|