```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 ```
30 lines
1 KiB
Bash
30 lines
1 KiB
Bash
# Template file for 'vala-panel'
|
|
pkgname=vala-panel
|
|
_glhash=da591ffc8460b2a473e1aba3e3dcf178
|
|
version=0.5.0
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="$(vopt_if wayland -Dplatforms=x11,layer-shell -Dplatforms=x11)"
|
|
hostmakedepends="vala pkg-config gettext glib-devel"
|
|
makedepends="gtk+3-devel libwnck-devel $(vopt_if wayland gtk-layer-shell-devel)"
|
|
short_desc="GTK+3 desktop panel forked from LXPanel"
|
|
maintainer="Joshua Krämer <joshua@kraemer.link>"
|
|
license="LGPL-3.0-or-later"
|
|
homepage="https://gitlab.com/vala-panel-project/vala-panel"
|
|
distfiles="https://gitlab.com/vala-panel-project/vala-panel/uploads/$_glhash/vala-panel-${version}.tar.xz"
|
|
checksum=ee3a9e000133da43b218ecd1738463c2de3f45783a5a09a11b9c263df4e233d1
|
|
|
|
# Package build options
|
|
build_options="wayland"
|
|
build_options_default="wayland"
|
|
|
|
vala-panel-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="vala-panel>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/vala
|
|
}
|
|
}
|