* gcc is kept at -Np0, because of void-cross ```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 ```
23 lines
726 B
Bash
23 lines
726 B
Bash
# Template file for 'glyr'
|
|
pkgname=glyr
|
|
version=1.0.10
|
|
revision=2
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libcurl-devel glib-devel sqlite-devel"
|
|
short_desc="Music metadata searchengine utility and library"
|
|
maintainer="Michal Koutenský <koutak.m@gmail.com>"
|
|
license="LGPL-3.0-or-later"
|
|
homepage="https://github.com/sahib/glyr"
|
|
distfiles="https://github.com/sahib/glyr/archive/${version}.tar.gz"
|
|
checksum=77e8da60221c8d27612e4a36482069f26f8ed74a1b2768ebc373c8144ca806e8
|
|
|
|
glyr-devel_package() {
|
|
depends="glyr>=${version}_${revision}"
|
|
short_desc="Music metadata searchengine utility and library - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|