3353bf4722
```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
796 B
Bash
25 lines
796 B
Bash
# Template file for 'xlunch'
|
|
pkgname=xlunch
|
|
version=4.7.0
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_build_target=xlunch
|
|
makedepends="imlib2-devel"
|
|
short_desc="Graphical app launcher for X with little dependencies"
|
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://xlunch.org/"
|
|
distfiles="https://github.com/Tomas-M/xlunch/archive/v${version}.tar.gz"
|
|
checksum=08728beba2a86b1e8f0cccf14903b7e6625e099425b6a254418c75636f2515e6
|
|
|
|
do_install() {
|
|
vbin xlunch
|
|
vbin extra/genentries
|
|
|
|
vmkdir usr/share/icons/hicolor/48x48/apps
|
|
vinstall extra/ghost.png 0644 usr/share/icons/hicolor/48x48/apps
|
|
vinstall docs/logo.png 0644 usr/share/icons/hicolor/48x48/apps
|
|
|
|
vmkdir usr/share/applications
|
|
vinstall extra/genentries.desktop 0644 usr/share/applications
|
|
}
|