Files
haikuports/app-misc/vifm/vifm-0.9.1.recipe
2018-06-29 20:14:26 -04:00

70 lines
1.8 KiB
Bash

SUMMARY="A vi-like file manager"
DESCRIPTION="Vifm is an ncurses based file manager with vi-like keybindings/modes/\
options/commands/configuration, which also borrows some useful ideas from mutt. \
If you use vi, Vifm gives you complete keyboard control over your files without \
having to learn a new set of commands."
HOMEPAGE="https://vifm.info/"
COPYRIGHT="2018 ksteen xaizek"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/vifm/vifm/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="f208cdcd912348df8e18214078ab2455831d05190078ab5af507bd9789ea8b04"
SOURCE_DIR="vifm-$portVersion"
ADDITIONAL_FILES="vifm.rdef.in"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
vifm$secondaryArchSuffix = $portVersion
cmd:vifm$secondaryArchSuffix = $portVersion
cmd:vifm_convert_dircolors$secondaryArchSuffix = $portVersion
cmd:vifm_pause$secondaryArchSuffix = $portVersion
cmd:vifm_screen_split$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libncurses$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:awk
cmd:sed
cmd:make
cmd:man
cmd:gcc$secondaryArchSuffix
cmd:which
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
# Add Haiku resources
local APP_SIGNATURE="application/x-vnd.vifm"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local LONG_INFO="$SUMMARY"
sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/vifm.rdef.in > vifm.rdef
addResourcesToBinaries vifm.rdef $binDir/vifm
}