wok-current annotate vifm/receipt @ rev 25398

updated vifm (0.10.1 -> 0.12)
author Hans-G?nter Theisgen
date Tue Aug 02 10:59:59 2022 +0100 (2022-08-02)
parents 922f061231c2
children
rev   line source
pascal@15723 1 # SliTaz package receipt.
pascal@15723 2
pascal@15723 3 PACKAGE="vifm"
Hans-G?nter@25398 4 VERSION="0.12"
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@25398 14 SUGGESTED="vim" # not really needed, busybox vi is sufficient
Hans-G?nter@25398 15 DEPENDS="file libmagic ncurses xorg-libX11"
Hans-G?nter@25398 16 BUILD_DEPENDS="file groff libmagic-dev ncurses-dev util-linux-whereis
Hans-G?nter@25398 17 xorg-libX11-dev"
Hans-G?nter@25398 18
Hans-G?nter@25398 19 CONFIG_FILES="/etc/vifm/vifmrc"
Hans-G?nter@21556 20
pascal@24304 21 # What is the latest version available today?
pascal@24304 22 current_version()
pascal@24304 23 {
pascal@24304 24 wget -O - https://github.com/vifm/vifm/tags 2>/dev/null | \
pascal@24304 25 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24304 26 }
pascal@24304 27
pascal@15723 28 # Rules to configure and make the package.
pascal@15723 29 compile_rules()
pascal@15723 30 {
Hans-G?nter@21557 31 ./configure \
Hans-G?nter@21557 32 --prefix=/usr \
Hans-G?nter@21557 33 --without-gtk \
Hans-G?nter@21557 34 --with-libmagic \
Hans-G?nter@21557 35 --datadir=/usr/share \
pascal@15723 36 $CONFIGURE_ARGS &&
Hans-G?nter@21556 37 make &&
Hans-G?nter@25398 38 make -j 1 install DESTDIR=$DESTDIR
Hans-G?nter@25398 39 # -j 1 is essential!
pascal@15723 40 }
pascal@15723 41
pascal@15723 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15723 43 genpkg_rules()
pascal@15723 44 {
pascal@15723 45 mkdir -p $fs/usr
Hans-G?nter@21556 46
Hans-G?nter@21556 47 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21556 48 cp -a $install/usr/share $fs/usr
Hans-G?nter@21556 49
pascal@15723 50 # rm stuff
Hans-G?nter@25398 51 rm -rf $fs/usr/share/doc
Hans-G?nter@25398 52 rm -rf $fs/usr/share/man
pascal@15723 53 }
Hans-G?nter@25398 54
Hans-G?nter@25398 55 post_install()
Hans-G?nter@25398 56 {
Hans-G?nter@25398 57 mkdir -p "$1/etc/vifm"
Hans-G?nter@25398 58
Hans-G?nter@25398 59 # replace vim by vi in vifmrc when vim is not installed
Hans-G?nter@25398 60 [ -f /usr/bin/vim ] ||
Hans-G?nter@25398 61 sed -i 's|vicmd=vim|vicmd=vi|' "$1/usr/share/vifm/vifmrc"
Hans-G?nter@25398 62
Hans-G?nter@25398 63 cp "$1/usr/share/vifm/vifmrc" "$1/etc/vifm/vifmrc"
Hans-G?nter@25398 64 }