void-packages/srcpkgs/libhandy1/template
Đoàn Trần Công Danh b11dd40935 libhandy1: update to 1.0.0
2020-09-18 18:46:23 +02:00

45 lines
1.5 KiB
Bash

# Template file for 'libhandy1'
pkgname=libhandy1
version=1.0.0
revision=1
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)
-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="Library full of GTK+ widgets for mobile phones"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.0-or-later"
homepage="https://source.puri.sm/Librem5/libhandy"
distfiles="${GNOME_SITE}/libhandy/${version%.*}/libhandy-${version}.tar.xz"
checksum=a9398582f47b7d729205d6eac0c068fef35aaf249fdd57eea3724f8518d26699
build_options="gir glade"
desc_option_glade="Generate glade modules and catalog files"
build_options_default="gir glade"
# https://gitlab.gnome.org/GNOME/glade/-/commit/bb626dd
CFLAGS="-DGWA_GET_CLASS=GLADE_WIDGET_ADAPTOR_GET_ADAPTOR_CLASS"
libhandy1-devel_package() {
depends="${sourcepkg}>=${version}_${revision} gtk+3-devel"
conflicts="libhandy-devel>=0"
short_desc+=" - development files"
pkg_install() {
vmove "usr/lib/*.so"
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_glade" ]; then
vmove usr/lib/glade
vmove usr/share/glade
fi
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
}
}