libhandy1: various improvements

* enable tests
* install demo to libhandy1-demo
* fix license
* remove conflict of libhandy1-devel with libhandy-devel
This commit is contained in:
Paper 2021-02-06 17:25:35 +01:00 committed by Đoàn Trần Công Danh
parent 8c969198d7
commit e9886d613c
2 changed files with 19 additions and 7 deletions

1
srcpkgs/libhandy1-demo Symbolic link
View File

@ -0,0 +1 @@
libhandy1

View File

@ -1,19 +1,19 @@
# Template file for 'libhandy1'
pkgname=libhandy1
version=1.0.3
revision=1
revision=2
wrksrc="libhandy-${version}"
build_style=meson
build_helper="gir"
# tests need X anyway, so no need to build them
configure_args="-Dexamples=false -Dtests=false $(vopt_bool gir vapi)
-Dglade_catalog=$(vopt_if glade enabled disabled)
configure_args="-Dexamples=true -Dtests=true
$(vopt_bool gir vapi) -Dglade_catalog=$(vopt_if glade enabled disabled)
-Dintrospection=$(vopt_if gir enabled disabled)"
hostmakedepends="glib-devel pkg-config $(vopt_if gir vala-devel)"
makedepends="gtk+3-devel libglib-devel $(vopt_if glade glade3-devel)"
short_desc="GTK+3 Building blocks for modern adaptive applications"
checkdepends="xvfb-run"
short_desc="GTK+3 building blocks for modern adaptive applications"
maintainer="Paper <paper@tilde.institute>"
license="LGPL-2.0-or-later"
license="LGPL-2.1-or-later"
homepage="https://gitlab.gnome.org/GNOME/libhandy/"
distfiles="${GNOME_SITE}/libhandy/${version%.*}/libhandy-${version}.tar.xz"
checksum=559bb3acc2c362488917eb72ed25bdc181f4ae26ac94d177634cc5d34c867f7a
@ -22,9 +22,12 @@ build_options="gir glade"
desc_option_glade="Generate glade modules and catalog files"
build_options_default="gir glade"
do_check() {
xvfb-run ninja -C build test
}
libhandy1-devel_package() {
depends="${sourcepkg}>=${version}_${revision} gtk+3-devel"
conflicts="libhandy-devel>=0"
short_desc+=" - development files"
pkg_install() {
vmove "usr/lib/*.so"
@ -40,3 +43,11 @@ libhandy1-devel_package() {
fi
}
}
libhandy1-demo_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - demonstration application"
pkg_install() {
vmove usr/bin/handy-1-demo
}
}