```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 ```
21 lines
725 B
Bash
21 lines
725 B
Bash
# Template file for 'notepadqq'
|
|
pkgname=notepadqq
|
|
version=1.4.8
|
|
revision=1
|
|
build_style=qmake
|
|
hostmakedepends="pkg-config qt5-tools qt5-qmake qt5-host-tools"
|
|
makedepends="qt5-svg-devel qt5-webkit-devel"
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
short_desc="Text editor for developers"
|
|
homepage="https://notepadqq.com"
|
|
license="GPL-3.0-or-later"
|
|
distfiles="https://github.com/notepadqq/notepadqq/archive/v${version}.tar.gz"
|
|
checksum=13fba9abd84c59de27fbe92f74e2763b57588fcf9c88af10ec67313b0abbc9d0
|
|
|
|
post_install() {
|
|
# no need for upstream's weird magic, leads to segfaults anyway
|
|
rm "${DESTDIR}/usr/bin/notepadqq"
|
|
# use our simple start scipt
|
|
vbin ${FILESDIR}/notepadqq
|
|
}
|