wok view vifm/receipt @ rev 25527

created recipes for libmpack and libmpack-dev 1.0.5
author Hans-G?nter Theisgen
date Sat Feb 25 07:28:19 2023 +0100 (21 months ago)
parents 922f061231c2
children
line source
1 # SliTaz package receipt.
3 PACKAGE="vifm"
4 VERSION="0.12"
5 CATEGORY="utilities"
6 SHORT_DESC="Vi File Manager."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://vifm.info/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 SUGGESTED="vim" # not really needed, busybox vi is sufficient
15 DEPENDS="file libmagic ncurses xorg-libX11"
16 BUILD_DEPENDS="file groff libmagic-dev ncurses-dev util-linux-whereis
17 xorg-libX11-dev"
19 CONFIG_FILES="/etc/vifm/vifmrc"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://github.com/vifm/vifm/tags 2>/dev/null | \
25 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 --prefix=/usr \
33 --without-gtk \
34 --with-libmagic \
35 --datadir=/usr/share \
36 $CONFIGURE_ARGS &&
37 make &&
38 make -j 1 install DESTDIR=$DESTDIR
39 # -j 1 is essential!
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/share $fs/usr
50 # rm stuff
51 rm -rf $fs/usr/share/doc
52 rm -rf $fs/usr/share/man
53 }
55 post_install()
56 {
57 mkdir -p "$1/etc/vifm"
59 # replace vim by vi in vifmrc when vim is not installed
60 [ -f /usr/bin/vim ] ||
61 sed -i 's|vicmd=vim|vicmd=vi|' "$1/usr/share/vifm/vifmrc"
63 cp "$1/usr/share/vifm/vifmrc" "$1/etc/vifm/vifmrc"
64 }