void-packages/srcpkgs/libhandy/template

49 lines
1.5 KiB
Bash
Raw Normal View History

2018-09-25 08:42:46 +02:00
# Template file for 'libhandy'
pkgname=libhandy
2019-01-19 08:49:30 +01:00
version=0.0.7
2018-09-25 08:42:46 +02:00
revision=1
wrksrc="libhandy-v${version}"
build_style=meson
2019-02-07 14:25:45 +01:00
build_helper="gir"
2018-09-25 08:42:46 +02:00
# tests need X anyway, so no need to build them
2018-10-13 04:03:24 +02:00
configure_args="-Dexamples=false -Dtests=false $(vopt_bool vala vapi)
2019-01-19 08:49:30 +01:00
-Dglade_catalog=$(vopt_if glade enabled disabled)
-Dintrospection=$(vopt_if gir enabled disabled)"
2019-02-07 14:25:45 +01:00
hostmakedepends="glib-devel pkg-config $(vopt_if vala vala-devel)"
makedepends="gtk+3-devel libglib-devel $(vopt_if glade glade3-devel)"
2019-01-01 20:37:26 +01:00
short_desc="Library full of GTK+ widgets for mobile phones"
2018-09-25 08:42:46 +02:00
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
2018-10-13 04:03:24 +02:00
license="LGPL-2.0-or-later"
2018-09-25 08:42:46 +02:00
homepage="https://source.puri.sm/Librem5/libhandy"
2019-01-01 20:37:26 +01:00
distfiles="https://source.puri.sm/Librem5/libhandy/-/archive/v${version}/libhandy-v${version}.tar.gz"
2019-01-19 08:49:30 +01:00
checksum=3464d4f508b4d2d9bdf351d6dccda1ef5bdeb62526ee8ce3a6377aaed2b4ca91
2018-09-25 08:42:46 +02:00
2018-10-13 04:03:24 +02:00
build_options="gir vala glade"
2018-12-13 16:40:46 +01:00
desc_option_glade="Generate glade modules and catalog files"
2019-02-07 14:25:45 +01:00
case "$XBPS_TARGET_MACHINE" in
x86_64-musl) build_options_default+=" gir vala glade" ;;
*-musl) ;;
*) build_options_default+=" gir vala glade" ;;
esac
2018-09-25 08:42:46 +02:00
libhandy-devel_package() {
2018-12-13 16:40:46 +01:00
depends="${sourcepkg}>=${version}_${revision} gtk+3-devel"
2018-09-25 08:42:46 +02:00
short_desc+=" - development files"
pkg_install() {
2018-10-13 04:03:24 +02:00
vmove "usr/lib/*.so"
2018-09-25 08:42:46 +02:00
vmove usr/include
vmove usr/lib/pkgconfig
2018-10-13 04:03:24 +02:00
if [ "$build_option_glade" ]; then
vmove usr/lib/glade
vmove usr/share/glade
fi
2018-09-25 08:42:46 +02:00
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
}
}