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