From 51f98b342b9d686c3f907daa4cbaf705b5f4dc8d Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Tue, 25 Sep 2018 08:42:46 +0200 Subject: [PATCH] New package: libhandy-0.0.3 --- common/shlibs | 1 + srcpkgs/libhandy-devel | 1 + srcpkgs/libhandy/template | 40 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 120000 srcpkgs/libhandy-devel create mode 100644 srcpkgs/libhandy/template diff --git a/common/shlibs b/common/shlibs index 89fc589e8a3..247fea97007 100644 --- a/common/shlibs +++ b/common/shlibs @@ -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 diff --git a/srcpkgs/libhandy-devel b/srcpkgs/libhandy-devel new file mode 120000 index 00000000000..a94d500bb81 --- /dev/null +++ b/srcpkgs/libhandy-devel @@ -0,0 +1 @@ +libhandy \ No newline at end of file diff --git a/srcpkgs/libhandy/template b/srcpkgs/libhandy/template new file mode 100644 index 00000000000..c80ebe5d659 --- /dev/null +++ b/srcpkgs/libhandy/template @@ -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 " +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 + } +}