void-packages/srcpkgs/libhandy/template
2019-04-28 03:12:38 +02:00

43 lines
1.4 KiB
Bash

# Template file for 'libhandy'
pkgname=libhandy
version=0.0.9
revision=2
wrksrc="libhandy-v${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 vala vapi)
-Dglade_catalog=$(vopt_if glade enabled disabled)
-Dintrospection=$(vopt_if gir enabled disabled)"
hostmakedepends="glib-devel pkg-config $(vopt_if vala vala-devel)"
makedepends="gtk+3-devel libglib-devel $(vopt_if glade glade3-devel)"
short_desc="Library full of GTK+ widgets for mobile phones"
maintainer="Rasmus Thomsen <oss@cogitri.dev>>"
license="LGPL-2.0-or-later"
homepage="https://source.puri.sm/Librem5/libhandy"
distfiles="https://source.puri.sm/Librem5/libhandy/-/archive/v${version}/libhandy-v${version}.tar.gz"
checksum=a9f3c06eaa482efabc1d00dd2df65dc7d41253a71c0cb0402328a831a4f398a3
build_options="gir vala glade"
desc_option_glade="Generate glade modules and catalog files"
build_options_default="gir vala glade"
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
}
}