c987560802
```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 ```
18 lines
542 B
Bash
18 lines
542 B
Bash
# Template file for 'crossguid'
|
|
pkgname=crossguid
|
|
version=0.2.2
|
|
revision=2
|
|
build_style=cmake
|
|
makedepends="libuuid-devel"
|
|
short_desc="Lightweight cross platform C++ GUID/UUID library (git $_gitshort)"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/graeme-hill/crossguid"
|
|
distfiles="$homepage/archive/v$version.tar.gz"
|
|
checksum=48321928473c682b0cdc7e17bbd3390f79f4b98ab22fef3b81a852dda81fd195
|
|
|
|
do_install() {
|
|
vlicense LICENSE
|
|
vinstall build/libxg.a 644 usr/lib
|
|
vinstall Guid.hpp 644 usr/include
|
|
}
|