wok-6.x view libmateweather/receipt @ rev 24465

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 17 12:02:46 2022 +0000 (2022-02-17)
parents 6fab3264ba87
children 73f36875e5a7
line source
1 # SliTaz package receipt.
3 PACKAGE="libmateweather"
4 VERSION="1.9.1"
5 CATEGORY="utilities"
6 LICENSE="GPL3"
7 SHORT_DESC="Provides access to weather information from the Internet."
8 MAINTAINER="yuripourre@gmail.com"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.mate-desktop.org/"
11 WGET_URL="https://github.com/mate-desktop/$PACKAGE/archive/$TARBALL"
12 TAGS="MATE"
13 DEPENDS="gtk+ libsoup"
14 BUILD_DEPENDS="wget dconf-dev gtk+-dev autoconf automake libtool itstool \
15 gtk-doc sqlite-dev mate-common-dev mate-desktop-dev libsoup-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./autogen.sh \
27 --prefix=/usr \
28 --sysconfdir=/etc \
29 --localstatedir=/var \
30 --disable-static \
31 --disable-python \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib $fs/usr/share
40 cp -a $install/usr/lib/*.so* $fs/usr/lib
41 cp -a $install/usr/share $fs/usr
42 }