void-packages/srcpkgs/caribou/template
Đoàn Trần Công Danh 548dc46261 caribou: switch to python3, split libcaribou
- caribou can run with python 3 just fine.

- cinnamon doesn't need all files from caribou for On Screen Keyboard.
  Split them out to drop unnecessary python dependencies.

- Fix broken stylesheet for antler-keyboard
2020-02-13 06:52:56 +01:00

47 lines
1.5 KiB
Bash

# Template file for 'caribou'
pkgname=caribou
version=0.4.21
revision=3
build_style=gnu-configure
build_helper="gir"
configure_args="--disable-schemas-compile --disable-static --disable-gtk2-module
PYTHON=/usr/bin/python3"
hostmakedepends="pkg-config intltool gnome-doc-utils python3-gobject-devel"
makedepends="vala-devel libxklavier-devel libgee08-devel python3-gobject-devel
clutter-devel gtk+3-devel libXtst-devel gir-freedesktop"
depends="python3-gobject python3-atspi python3-dbus gir-freedesktop at-spi2-atk
desktop-file-utils libcaribou>=${version}_${revision}"
short_desc="Alternative to the Gnome On-screen Keyboard"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-only"
homepage="https://wiki.gnome.org/Projects/Caribou"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=9c43d9f4bd30f4fea7f780d4e8b14f7589107c52e9cb6bd202bd0d1c2064de55
lib32disabled=yes
patch_args=-Np1
libcaribou_package() {
lib32disabled=yes
short_desc+=" - library"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove usr/share/caribou
vmove usr/lib/girepository-1.0
vmove "usr/lib/gtk*"
vmove "usr/lib/gnome-settings-daemon*"
}
}
caribou-devel_package() {
lib32disabled=yes
depends="libXtst-devel libgee08-devel libxklavier-devel gtk+3-devel
libxml2-devel libcaribou>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/gir-1.0
vmove usr/share/vala
vmove "usr/lib/*.so"
}
}