wok-current annotate libmatemixer/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | e863f2041090 |
children | 73f36875e5a7 |
rev | line source |
---|---|
yuripourre@17712 | 1 # SliTaz package receipt. |
yuripourre@17712 | 2 |
yuripourre@17712 | 3 PACKAGE="libmatemixer" |
yuripourre@17712 | 4 VERSION="1.9.2" |
yuripourre@17712 | 5 CATEGORY="utilities" |
yuripourre@17712 | 6 LICENSE="GPL3" |
yuripourre@17712 | 7 SHORT_DESC="Mixer library for MATE Desktop." |
yuripourre@17712 | 8 MAINTAINER="yuripourre@gmail.com" |
yuripourre@17712 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
yuripourre@17712 | 10 WEB_SITE="http://www.mate-desktop.org/" |
yuripourre@17712 | 11 WGET_URL="https://github.com/mate-desktop/$PACKAGE/archive/$TARBALL" |
yuripourre@18280 | 12 TAGS="MATE" |
yuripourre@17712 | 13 DEPENDS="alsa-lib pulseaudio" |
yuripourre@17712 | 14 BUILD_DEPENDS="wget alsa-lib-dev pulseaudio-dev gtk+-dev autoconf automake libtool itstool \ |
yuripourre@17712 | 15 mate-common-dev gtk-doc util-linux-uuid-dev libjson-c-dev libsndfile-dev flac-dev \ |
yuripourre@17712 | 16 libvorbis-dev dbus-dev" |
yuripourre@17712 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
yuripourre@17712 | 24 # Rules to configure and make the package. |
yuripourre@17712 | 25 compile_rules() |
yuripourre@17712 | 26 { |
yuripourre@17712 | 27 ./autogen.sh \ |
yuripourre@17712 | 28 --prefix=/usr \ |
yuripourre@17712 | 29 --sysconfdir=/etc \ |
yuripourre@17712 | 30 --localstatedir=/var \ |
yuripourre@17712 | 31 --disable-static \ |
yuripourre@17712 | 32 $CONFIGURE_ARGS && |
yuripourre@17712 | 33 make && |
yuripourre@17712 | 34 make DESTDIR=$DESTDIR install |
yuripourre@17712 | 35 } |
yuripourre@17712 | 36 |
yuripourre@17712 | 37 genpkg_rules() |
yuripourre@17712 | 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@17712 | 41 cp -a $install/usr/share $fs/usr |
yuripourre@17712 | 42 } |