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

36 lines
1.2 KiB
Bash

# Template file for 'guake'
pkgname=guake
version=3.7.0
revision=1
build_style=python3-module
hostmakedepends="gettext python3-setuptools python3-pbr"
makedepends="python3-devel python3-pbr"
depends="desktop-file-utils libkeybinder3 libnotify python3-dbus python3-gobject
python3-pbr vte3 libwnck python3-setuptools"
checkdepends="python3-flake8 python3-pylint python3-pytest python3-pipenv"
short_desc="Drop-down terminal for GNOME"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://guake-project.org/"
distfiles="${PYPI_SITE}/g/guake/guake-${version}.tar.gz"
checksum=31fd7d6f62aa0a5e0121e240682e6a9e5ce61cdb266f9438987837f52d552e47
pre_build() {
GUAKE_SCHEMA_DIR="/usr/share/glib-2.0/schemas"
make generate-desktop generate-mo prefix=/usr COMPILE_SCHEMA=0
make generate-paths prefix=/usr DATA_DIR='$(datadir)/guake' \
DEV_SCHEMA_DIR='$(gsettingsschemadir)' COMPILE_SCHEMA=0
vsed -i -e '/^SCHEMA_DIR/s|get_default_schema_dir()|"'"${GUAKE_SCHEMA_DIR}"'"|g' \
guake/paths.py
}
do_check() {
vsed -i 's/from mock/from unittest.mock/g' guake/tests/test_quick_open.py
make test
}
pre_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} COMPILE_SCHEMA=0 install-locale install-schemas
}