200bed5c06
```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
842 B
Bash
26 lines
842 B
Bash
# Template file for 'heaptrack'
|
|
pkgname=heaptrack
|
|
version=1.2.0
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DHEAPTRACK_BUILD_GUI=ON"
|
|
hostmakedepends="qt5-qmake qt5-host-tools extra-cmake-modules kcoreaddons
|
|
gettext"
|
|
makedepends="qt5-devel boost-devel libunwind-devel libdwarf-devel kdiagram-devel
|
|
libzstd-devel ecm-devel ki18n-devel kitemmodels-devel kio-devel
|
|
kconfigwidgets-devel threadweaver-devel"
|
|
#depends="gdb"
|
|
short_desc="Heap memory profiler for Linux"
|
|
maintainer="Piraty <piraty1@inbox.ru>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://github.com/KDE/heaptrack"
|
|
distfiles="https://github.com/KDE/heaptrack/archive/v${version}.tar.gz"
|
|
checksum=f299a4846b80e607a412f439e17cddae13f0529701ffdb05eaa7ba878865717e
|
|
|
|
heaptrack-gui_package() {
|
|
short_desc+=" - GUI"
|
|
pkg_install() {
|
|
vmove usr/bin/heaptrack_gui
|
|
vmove usr/share
|
|
}
|
|
}
|