void-packages/srcpkgs/libhandy/template
2018-12-13 15:25:14 -02:00

44 lines
1.4 KiB
Bash

# Template file for 'libhandy'
pkgname=libhandy
version=0.0.5
revision=1
wrksrc="libhandy-v${version}"
build_style=meson
# tests need X anyway, so no need to build them
configure_args="-Dexamples=false -Dtests=false $(vopt_bool vala vapi)
$(vopt_bool glade glade_catalog) $(vopt_bool gir introspection)"
hostmakedepends="glib-devel pkg-config $(vopt_if gir gobject-introspection)
$(vopt_if vala vala-devel) $(vopt_if glade glade3-devel)"
makedepends="gtk+3-devel libglib-devel"
short_desc="A library full of GTK+ widgets for mobile phones"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="LGPL-2.0-or-later"
homepage="https://source.puri.sm/Librem5/libhandy"
distfiles="${homepage}/-/archive/v${version}/${wrksrc}.tar.gz"
checksum=64fb814d5deceef8107d101fc4bef614e3b146b67a9d8a9492ac679eebd72b47
build_options="gir vala glade"
desc_option_glade="Generate glade modules and catalog files"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gir vala glade"
fi
libhandy-devel_package() {
depends="${sourcepkg}>=${version}_${revision} gtk+3-devel"
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
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
}
}