SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "neovim"

# SliTaz package receipt.

PACKAGE="neovim"
VERSION="0.8.3"
CATEGORY="editors"
TAGS="text-editor"
SHORT_DESC="Vim-fork focused on extensibility and usability."
MAINTAINER="maintainer@slitaz.org"
LICENSE="Apache 2.0"
WEB_SITE="https://neovim.io/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION.tar.gz"

SUGGESTED="lua5.1"
DEPENDS="libluv libtermkey libuv libvterm luajit msgpack tree-sitter
    unibilium"
BUILD_DEPENDS="cmake gettext gettext-tools libluv-dev libtermkey-dev
    libuv-dev libvterm-dev lua5.1-lpeg lua5.1-mpack luajit-dev
    msgpack-dev ninja tree-sitter-dev unibilium-dev"

CONFIG_FILES="/usr/share/nvim/sysinit.vim"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    export    LDFLAGS="$LDFLAGS -lrt"
    # without, cmake does not find sys/wait.h !

    cmake    -B _build            \
        -G Ninja            \
        -D CMAKE_BUILD_TYPE=MinSizeRel    \
        -D CMAKE_INSTALL_PREFIX=/usr    \
        -D CMAKE_INSTALL_LIBDIR=lib    \
        -D ENABLE_JEMALLOC=FALSE    \
        -D ENABLE_LIBICONV=FALSE    \
        -D ENABLE_LIBINTL=FALSE        \
        -D ENABLE_LTO=TRUE        \
        -D CMAKE_VERBOSE_MAKEFILE=TRUE &&
    cmake    --build _build
    DESTDIR="$DESTDIR" cmake --install _build
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_folders    icons
    cook_copy_folders    runtime
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)