void-packages/srcpkgs/glade3/template
Đoàn Trần Công Danh 2b4ea906c4 glade3: switch to python3, add webkit module
Closes: https://github.com/void-linux/void-packages/issues/18236
Closes: https://github.com/void-linux/void-packages/pull/17766

Added by q66: move some extra files that belong in libgladeui3
from the glade3 package. These can be used with the libgladeui
library, and are not a part of the designer per se.
2020-02-05 15:59:59 +01:00

61 lines
1.6 KiB
Bash

# Template file for 'glade3'
pkgname=glade3
version=3.22.1
revision=4
wrksrc="glade-${version}"
build_style=gnu-configure
build_helper="gir"
configure_args="--disable-static --enable-debug=info PYTHON=/usr/bin/python3
--enable-gladeui $(vopt_enable gir introspection)"
hostmakedepends="glib-devel gnome-doc-utils intltool itstool pkg-config
automake autoconf-archive libtool yelp-tools gettext-devel gtk-doc"
makedepends="gtk+3-devel python3-gobject-devel webkit2gtk-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="User Interface Designer for GTK+3"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="http://glade.gnome.org/"
distfiles="${GNOME_SITE}/glade/${version%.*}/glade-${version}.tar.xz"
checksum=dff89a2ef2eaf000ff2a46979978d03cb9202cb04668e01d0ea5c5bb5547e39a
lib32disabled=yes
# Package build options
build_options="gir"
build_options_default="gir"
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
do_check() {
# Require running xserver
:
}
libgladeui3_package() {
depends="python3-gobject"
short_desc="GTK+ User Interface Build core library"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove usr/lib/glade/modules
vmove usr/share/glade
vmove usr/share/locale
if [ "$build_option_gir" ]; then
vmove usr/lib/girepository-1.0
fi
}
}
glade3-devel_package() {
depends="gtk+3-devel libxml2-devel libgladeui3>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove usr/share/gtk-doc
vmove "usr/lib/*.so"
}
}