void-packages/srcpkgs/guake/template
2021-03-01 21:57:52 +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
}