From f33b11a4cef04bb9298ffb2d0b80a0a7ad74642a Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Tue, 10 May 2022 11:50:34 +0200 Subject: [PATCH] New package: libshumate-1.0.3 --- common/shlibs | 1 + srcpkgs/libshumate-devel | 1 + srcpkgs/libshumate/template | 42 +++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 120000 srcpkgs/libshumate-devel create mode 100644 srcpkgs/libshumate/template diff --git a/common/shlibs b/common/shlibs index 84721a6a5d7..72c62657dc5 100644 --- a/common/shlibs +++ b/common/shlibs @@ -826,6 +826,7 @@ libmission-control-plugins.so.0 telepathy-mission-control-5.9.2_1 libclutter-gtk-1.0.so.0 clutter-gtk-1.1.2_1 libchamplain-0.12.so.0 libchamplain-0.12.5_2 libchamplain-gtk-0.12.so.0 libchamplain-0.12.5_2 +libshumate-1.0.so.1 libshumate-1.0.0_1 libvpx.so.5 libvpx5-1.7.0_1 libvpx.so.6 libvpx6-1.8.0_1 libvpx.so.7 libvpx7-1.11.0_1 diff --git a/srcpkgs/libshumate-devel b/srcpkgs/libshumate-devel new file mode 120000 index 00000000000..b496e93fa41 --- /dev/null +++ b/srcpkgs/libshumate-devel @@ -0,0 +1 @@ +libshumate \ No newline at end of file diff --git a/srcpkgs/libshumate/template b/srcpkgs/libshumate/template new file mode 100644 index 00000000000..13d129d4312 --- /dev/null +++ b/srcpkgs/libshumate/template @@ -0,0 +1,42 @@ +# Template file for 'libshumate' +pkgname=libshumate +version=1.0.3 +revision=1 +build_style=meson +build_helper="gir" +configure_args="$(vopt_bool gir vapi) $(vopt_bool gir gir) $(vopt_bool gir gtk_doc)" +hostmakedepends="pkg-config $(vopt_if gir 'gi-docgen vala') glib-devel gettext" +makedepends="libglib-devel sqlite-devel cairo-devel gtk4-devel libsoup3-devel" +short_desc="C library providing a GtkWidget to display maps" +maintainer="Michal Vasilek " +license="LGPL-2.1-or-later" +homepage="https://wiki.gnome.org/Projects/libshumate" +#changelog="https://gitlab.gnome.org/GNOME/libshumate/-/raw/main/NEWS" +changelog="https://gitlab.gnome.org/GNOME/libshumate/-/raw/libshumate-1-0/NEWS" +distfiles="${GNOME_SITE}/libshumate/${version%.*}/libshumate-${version}.tar.xz" +checksum=77a192f0dfec082b8de20b1939f3adf03eed41114d49fdaae2bbb2729ceb015a + +build_options="gir" +build_options_default="gir" + +pre_build() { + # help gi-docgen find gi files on cross + if [ -n "$CROSS_BUILD" ]; then + export XDG_DATA_DIRS=/usr/$XBPS_CROSS_TRIPLET/usr/share/ + fi +} + +libshumate-devel_package() { + depends="${sourcepkg}>=${version}_${revision} ${makedepends}" + short_desc+=" - development files" + pkg_install() { + vmove "usr/lib/*.so" + vmove usr/include + vmove usr/lib/pkgconfig + if [ "${build_option_gir}" ]; then + vmove usr/share/gir-1.0 + vmove usr/share/vala + vmove usr/share/doc + fi + } +}