void-packages/srcpkgs/guake/template

35 lines
1.2 KiB
Bash

# Template file for 'guake'
pkgname=guake
version=3.6.3
revision=4
build_style=python3-module
wrksrc="Guake-${version}"
pycompile_module="guake"
hostmakedepends="gettext python3-setuptools"
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=dabfb58070c721b3e2d8fc9621afdd9de74ed7929d2453a9d08058baab5b7791
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
sed -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
}