void-packages/srcpkgs/guake/template

35 lines
1.2 KiB
Bash

# Template file for 'guake'
pkgname=guake
version=3.10
revision=1
build_style=python3-module
hostmakedepends="gettext python3-setuptools_scm python3-pbr python3-wheel"
makedepends="python3-devel python3-pbr"
depends="desktop-file-utils libkeybinder3 libnotify libutempter libwnck python3-dbus python3-gobject
python3-setuptools_scm python3-cairo python3-yaml vte3"
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=c0eed162959638b26903281dccaa6db0d41fb94e3ed3cb3a4dbf44dfd3f8c129
# Tests not shipped in PYPI tarball
make_check=no
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
}
pre_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} COMPILE_SCHEMA=0 install-locale install-schemas
}