mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
70 lines
1.8 KiB
Bash
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="2"
|
|
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:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:man
|
|
cmd:sed
|
|
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
|
|
}
|