ec4c2d75fa
```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 ```
25 lines
751 B
Bash
25 lines
751 B
Bash
# Template file for 'CPU-X'
|
|
pkgname=CPU-X
|
|
version=4.0.1
|
|
revision=1
|
|
archs="x86_64* i686*"
|
|
build_style=cmake
|
|
hostmakedepends="nasm pkg-config gettext"
|
|
makedepends="libcpuid-devel ncurses-devel pciutils-devel
|
|
procps-ng-devel $(vopt_if gtk3 'gtk+3-devel')"
|
|
short_desc="Free software that gathers information on CPU, motherboard and more"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://x0rg.github.io/CPU-X/"
|
|
distfiles="https://github.com/X0rg/CPU-X/archive/v${version}.tar.gz"
|
|
checksum=c41fbb3000e3e6f79e5228aa0237fde4f98b11df8ccb4c9a46f7e63a4a7011bf
|
|
|
|
build_options="gtk3"
|
|
build_options_default="gtk3"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
makedepends+=" libexecinfo-devel"
|
|
LDFLAGS="-lexecinfo"
|
|
;;
|
|
esac
|