wok annotate vifm/receipt @ rev 24758

xfe: cheat configure
author Hans-G?nter Theisgen
date Fri Mar 18 07:44:06 2022 +0100 (2022-03-18)
parents 2bfe25db26a5
children 2e4bde2eb7d9
rev   line source
pascal@15723 1 # SliTaz package receipt.
pascal@15723 2
pascal@15723 3 PACKAGE="vifm"
Hans-G?nter@22103 4 VERSION="0.10.1"
pascal@15723 5 CATEGORY="utilities"
pascal@15723 6 SHORT_DESC="Vi File Manager."
pascal@15723 7 MAINTAINER="paul@slitaz.org"
pascal@15723 8 LICENSE="GPL2"
Hans-G?nter@22103 9 WEB_SITE="https://vifm.info/"
Hans-G?nter@21556 10
pascal@15723 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@15723 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@15723 13
Hans-G?nter@21556 14 DEPENDS="file libmagic ncurses vim xorg-libX11"
Hans-G?nter@21557 15 BUILD_DEPENDS="file groff libmagic-dev ncurses-dev util-linux-whereis \
Hans-G?nter@21556 16 vim xorg-libX11-dev"
Hans-G?nter@21556 17
pascal@24304 18 # What is the latest version available today?
pascal@24304 19 current_version()
pascal@24304 20 {
pascal@24304 21 wget -O - https://github.com/vifm/vifm/tags 2>/dev/null | \
pascal@24304 22 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24304 23 }
pascal@24304 24
pascal@15723 25 # Rules to configure and make the package.
pascal@15723 26 compile_rules()
pascal@15723 27 {
Hans-G?nter@21557 28 ./configure \
Hans-G?nter@21557 29 --prefix=/usr \
Hans-G?nter@21557 30 --without-gtk \
Hans-G?nter@21557 31 --with-libmagic \
Hans-G?nter@21557 32 --datadir=/usr/share \
pascal@15723 33 $CONFIGURE_ARGS &&
Hans-G?nter@21556 34 make &&
pascal@22110 35 make DESTDIR=$DESTDIR -j 1 install
pascal@15723 36 }
pascal@15723 37
pascal@15723 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15723 39 genpkg_rules()
pascal@15723 40 {
pascal@15723 41 mkdir -p $fs/usr
Hans-G?nter@21556 42
Hans-G?nter@21556 43 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21556 44 cp -a $install/usr/share $fs/usr
Hans-G?nter@21556 45
pascal@15723 46 # rm stuff
pascal@15723 47 rm -rf $fs/usr/share/man
pascal@15723 48 }