void-packages/srcpkgs/libhandy/template

45 lines
1.3 KiB
Bash
Raw Normal View History

2018-09-25 08:42:46 +02:00
# Template file for 'libhandy'
pkgname=libhandy
2018-10-13 04:03:24 +02:00
version=0.0.4
2018-09-25 08:42:46 +02:00
revision=1
wrksrc="libhandy-v${version}"
build_style=meson
# 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)
$(vopt_bool glade glade_catalog) $(vopt_bool gir introspection)"
2018-09-25 08:42:46 +02:00
hostmakedepends="glib-devel pkg-config $(vopt_if gir gobject-introspection)
2018-10-13 04:03:24 +02:00
$(vopt_if vala vala-devel) $(vopt_if glade glade3-devel)"
2018-09-25 08:42:46 +02:00
makedepends="gtk+3-devel libglib-devel"
short_desc="A library full of GTK+ widgets for mobile phones"
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"
2018-10-13 04:03:24 +02:00
distfiles="${homepage}/-/archive/v${version}/${wrksrc}.tar.gz"
checksum=2c54b61cefb153b3a6ab8b6ecb520375854301632c998b003dd7dba623ea2a03
2018-09-25 08:42:46 +02:00
2018-10-13 04:03:24 +02:00
build_options="gir vala glade"
2018-09-25 08:42:46 +02:00
if [ -z "$CROSS_BUILD" ]; then
2018-10-13 04:03:24 +02:00
build_options_default="gir vala glade"
2018-09-25 08:42:46 +02:00
fi
libhandy-devel_package() {
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
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
}
}