wok annotate libfm-extra/receipt @ rev 24071

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 10:35:01 2021 +0000 (2021-07-07)
parents 123199f38bb3
children e9d0b2012a0d
rev   line source
al@21306 1 # SliTaz package receipt.
al@21306 2
al@21306 3 PACKAGE="libfm-extra"
al@21306 4 VERSION="1.3.1"
al@21306 5 CATEGORY="system-tools"
al@21306 6 SHORT_DESC="File management support (extra library)"
al@21306 7 MAINTAINER="devel@slitaz.org"
al@21306 8 LICENSE="GPL2"
al@21306 9 WEB_SITE="http://pcmanfm.sourceforge.net"
al@21306 10
al@21306 11 TARBALL="libfm-$VERSION.tar.xz"
al@21306 12 WGET_URL="$SF_MIRROR/pcmanfm/$TARBALL"
al@21306 13
al@21306 14 GENERIC_MENUS="no"
al@21306 15
al@21306 16 DEPENDS="glib glibc-base libgio"
al@21309 17 BUILD_DEPENDS="automake gtk-doc libtool intltool"
al@21306 18
pascal@24071 19 current_version()
pascal@24071 20 {
pascal@24071 21 wget -O - https://sourceforge.net/projects/pcmanfm/files/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/LibFM/ 2>/dev/null | \
pascal@24071 22 sed "/libfm-/!d;/tar/!d;s|.*libfm-\\(.*\\).tar.*\".*|\\1|;q"
pascal@24071 23 }
pascal@24071 24
al@21306 25 # Rules to configure and make the package.
al@21306 26 compile_rules()
al@21306 27 {
al@21309 28 ./autogen.sh
al@21306 29 ./configure \
al@21306 30 --sysconfdir=/etc \
al@21306 31 --with-extra-only \
al@21306 32 --with-gtk=no \
al@21306 33 --disable-static \
al@21306 34 $CONFIGURE_ARGS &&
al@21306 35 make &&
al@21306 36 make install
al@21306 37 }
al@21306 38
al@21306 39 # Rules to gen a SliTaz package suitable for Tazpkg.
al@21306 40 genpkg_rules()
al@21306 41 {
al@21306 42 mkdir -p $fs/usr/lib
al@21306 43 cp -a $install/usr/lib/*.so* $fs/usr/lib/
al@21306 44 }