New package: libhandy-0.0.3

This commit is contained in:
Rasmus Thomsen 2018-09-25 08:42:46 +02:00 committed by maxice8
parent a76efca922
commit 51f98b342b
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
3 changed files with 42 additions and 0 deletions

View File

@ -3311,3 +3311,4 @@ libdleyna-renderer-1.0.so.1 dleyna-renderer-0.6.0_1
libdleyna-server-1.0.so.1 dleyna-server-0.6.0_1
liburiparser.so.1 uriparser-0.8.6_1
libcpptest.so.0 cpptest-1.1.2_1
libhandy-0.0.so.0 libhandy-0.0.3_1

1
srcpkgs/libhandy-devel Symbolic link
View File

@ -0,0 +1 @@
libhandy

40
srcpkgs/libhandy/template Normal file
View File

@ -0,0 +1,40 @@
# 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
}
}