mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
community/ibus: enable gtk4, split gtk modules into subpackages
Otherwise, this pulls GTK2 into basically every GNOME-related installation. And provides overall a smaller base package
This commit is contained in:
parent
8e394afe21
commit
2aafc9adc3
@ -1,7 +1,7 @@
|
||||
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
|
||||
pkgname=ibus
|
||||
pkgver=1.5.29
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Next Generation Input Bus for Linux"
|
||||
url="https://github.com/ibus/ibus/wiki"
|
||||
arch="all"
|
||||
@ -10,8 +10,8 @@ depends="
|
||||
dconf hicolor-icon-theme iso-codes dbus py3-gobject3
|
||||
"
|
||||
makedepends="
|
||||
bash dconf-dev gtk+2.0-dev gtk+3.0-dev libnotify-dev iso-codes-dev
|
||||
gobject-introspection-dev vala qt5-qtbase
|
||||
bash dconf-dev gtk+2.0-dev gtk+3.0-dev gtk4.0-dev
|
||||
libnotify-dev iso-codes-dev gobject-introspection-dev vala qt5-qtbase
|
||||
wayland-dev wayland-protocols
|
||||
dbus-x11 unicode-character-database cldr-emoji-annotation
|
||||
libdbusmenu-glib-dev libdbusmenu-gtk3-dev
|
||||
@ -22,6 +22,9 @@ subpackages="
|
||||
$pkgname-lang
|
||||
$pkgname-pyc
|
||||
$pkgname-emoji
|
||||
$pkgname-gtk2
|
||||
$pkgname-gtk3
|
||||
$pkgname-gtk4
|
||||
$pkgname-bash-completion
|
||||
"
|
||||
source="https://github.com/ibus/ibus/releases/download/$pkgver/ibus-$pkgver-rc2.tar.gz"
|
||||
@ -43,6 +46,7 @@ build() {
|
||||
--sysconfdir=/etc \
|
||||
--enable-dconf \
|
||||
--enable-wayland \
|
||||
--enable-gtk4 \
|
||||
--disable-memconf \
|
||||
--enable-ui \
|
||||
--disable-gtk-doc \
|
||||
@ -68,6 +72,24 @@ emoji() {
|
||||
mv "$pkgdir"/usr/share/ibus/dicts "$subpkgdir"/usr/share/ibus
|
||||
}
|
||||
|
||||
gtk2() {
|
||||
install_if="$pkgname=$pkgver-r$pkgrel gtk+2.0"
|
||||
|
||||
amove usr/lib/gtk-2.0/2.10.0
|
||||
}
|
||||
|
||||
gtk3() {
|
||||
install_if="$pkgname=$pkgver-r$pkgrel gtk+3.0"
|
||||
|
||||
amove usr/lib/gtk-3.0/3.0.0
|
||||
}
|
||||
|
||||
gtk4() {
|
||||
install_if="$pkgname=$pkgver-r$pkgrel gtk4.0"
|
||||
|
||||
amove usr/lib/gtk-4.0/4.0.0
|
||||
}
|
||||
|
||||
pyc() {
|
||||
default_pyc
|
||||
amove usr/share/ibus/setup/__pycache__
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user