wok annotate gsettings-desktop-schemas/receipt @ rev 24111

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 28 17:26:43 2021 +0000 (2021-09-28)
parents b8ba1ff08a50
children 290e2045aaea
rev   line source
al@13522 1 # SliTaz package receipt.
al@13522 2
al@13522 3 PACKAGE="gsettings-desktop-schemas"
Hans-G?nter@22883 4 VERSION="3.34.0"
al@13522 5 CATEGORY="x-window"
Hans-G?nter@21005 6 SHORT_DESC="Collection of GSettings schemas for settings shared by various components of a GNOME Desktop."
al@13522 7 MAINTAINER="al.bobylev@gmail.com"
pascal@14996 8 LICENSE="LGPL2.1"
Hans-G?nter@21005 9 WEB_SITE="https://www.gnome.org/"
Hans-G?nter@21005 10
al@13522 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@21005 12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
al@13522 13
pascal@14996 14 DEPENDS=""
Hans-G?nter@22884 15 BUILD_DEPENDS="glib-dev gobject-introspection-dev libgio-dev meson ninja"
pascal@14996 16
pascal@24111 17 current_version()
pascal@24111 18 {
pascal@24111 19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24111 20 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24111 21 }
pascal@24111 22
al@13522 23 # Rules to configure and make the package.
al@13522 24 compile_rules()
al@13522 25 {
Hans-G?nter@22883 26 meson build --prefix=/usr &&
Hans-G?nter@22883 27 ninja -C build &&
Hans-G?nter@22883 28 ninja -C build install
al@13522 29 }
al@13522 30
al@13522 31 # Rules to gen a SliTaz package suitable for Tazpkg.
al@13522 32 genpkg_rules()
al@13522 33 {
Hans-G?nter@22883 34 cp -a $install/usr $fs
al@13522 35 }