void-packages/srcpkgs/laditools/template
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

19 lines
646 B
Bash

# Template file for 'laditools'
pkgname=laditools
version=1.1.0
revision=3
build_style=python2-module
hostmakedepends="python-distutils-extra intltool librsvg-utils"
depends="ladish jack gtk+3 python-gobject python-dbus python-enum34 python-xdg vte3"
short_desc="Linux Audio Desktop Integration Tools"
maintainer="Cameron Nemo <cnemo@tutanota.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/alessio/laditools"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=ca99f4b6e17b7333ed87dd12a2d91da4d486e53d89dd2677edfa29170ec6efe5
post_install() {
# remove wmladi, we do not have wmdocklib.
rm -f ${DESTDIR}/usr/bin/wmladi
}