41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
|
# Template file for 'libhandy'
|
||
|
pkgname=libhandy
|
||
|
version=0.0.3
|
||
|
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
|
||
|
-Dintrospection=$(vopt_if gir true false) -Dvala=$(vopt_if vapi true false)"
|
||
|
hostmakedepends="glib-devel pkg-config $(vopt_if gir gobject-introspection)
|
||
|
$(vopt_if vala vala-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="GPL-3.0-or-later"
|
||
|
homepage="https://source.puri.sm/Librem5/libhandy"
|
||
|
distfiles="https://gitlab.gnome.org/Community/Purism/libhandy/-/archive/v${version}/libhandy-v${version}.tar.gz"
|
||
|
checksum=387bb4da0e5d15d6d83cac5276841e6eda8429548b292ea3ebf002679189c270
|
||
|
|
||
|
build_options="gir vala"
|
||
|
|
||
|
if [ -z "$CROSS_BUILD" ]; then
|
||
|
build_options_default="gir vala"
|
||
|
fi
|
||
|
|
||
|
libhandy-devel_package() {
|
||
|
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
|
||
|
short_desc+=" - development files"
|
||
|
pkg_install() {
|
||
|
vmove usr/include
|
||
|
vmove usr/lib/pkgconfig
|
||
|
vmove usr/share/glade
|
||
|
if [ "$build_option_gir" ]; then
|
||
|
vmove usr/share/gir-1.0
|
||
|
fi
|
||
|
if [ "$build_option_vala" ]; then
|
||
|
vmove usr/share/vala
|
||
|
fi
|
||
|
}
|
||
|
}
|