wok annotate libmatekbd/receipt @ rev 24340
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 31 11:41:46 2022 +0000 (2022-01-31) |
parents | e863f2041090 |
children | 73f36875e5a7 |
rev | line source |
---|---|
yuripourre@17796 | 1 # SliTaz package receipt. |
yuripourre@17796 | 2 |
yuripourre@17796 | 3 PACKAGE="libmatekbd" |
yuripourre@17796 | 4 VERSION="1.9.1" |
yuripourre@17796 | 5 CATEGORY="utilities" |
yuripourre@17796 | 6 LICENSE="GPL3" |
yuripourre@17796 | 7 SHORT_DESC="Keyboard library for MATE Desktop." |
yuripourre@17796 | 8 MAINTAINER="yuripourre@gmail.com" |
yuripourre@17796 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
yuripourre@17796 | 10 WEB_SITE="http://www.mate-desktop.org/" |
yuripourre@17796 | 11 WGET_URL="https://github.com/mate-desktop/$PACKAGE/archive/$TARBALL" |
yuripourre@18280 | 12 TAGS="MATE" |
yuripourre@17801 | 13 DEPENDS="gtk+ iso-codes dconf libxklavier" |
yuripourre@17796 | 14 BUILD_DEPENDS="wget gtk+-dev autoconf automake libtool itstool gtk-doc \ |
yuripourre@17796 | 15 mate-common-dev dconf-dev libxklavier-dev" |
yuripourre@17796 | 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@17796 | 23 # Rules to configure and make the package. |
yuripourre@17796 | 24 compile_rules() |
yuripourre@17796 | 25 { |
yuripourre@17796 | 26 ./autogen.sh \ |
yuripourre@17796 | 27 --prefix=/usr \ |
yuripourre@17796 | 28 --sysconfdir=/etc \ |
yuripourre@17796 | 29 --localstatedir=/var \ |
yuripourre@17796 | 30 --disable-static \ |
yuripourre@17796 | 31 $CONFIGURE_ARGS && |
yuripourre@17796 | 32 make && |
yuripourre@17796 | 33 make DESTDIR=$DESTDIR install |
yuripourre@17796 | 34 } |
yuripourre@17796 | 35 |
yuripourre@17796 | 36 genpkg_rules() |
yuripourre@17796 | 37 { |
yuripourre@17796 | 38 mkdir -p $fs/usr/share $fs/usr/lib |
yuripourre@17796 | 39 cp -a $install/usr/share $fs/usr |
yuripourre@17796 | 40 cp -a $install/usr/lib/*.so* $fs/usr/lib |
yuripourre@17796 | 41 } |