Package Details: nvi-multibyte-git 1.81.6_20240912-1

Git Clone URL: https://aur.archlinux.org/nvi-multibyte-git.git (read-only, click to copy)
Package Base: nvi-multibyte-git
Description: nvi with multibyte support
Upstream URL: git://repo.or.cz/nvi.git
Keywords: bsd editor nvi vi vim
Licenses: BSD
Conflicts: nvi, nvi-multibyte-upstream
Provides: nvi
Submitter: Invarianz
Maintainer: archdub
Last Packager: archdub
Votes: 3
Popularity: 0.000000
First Submitted: 2023-02-06 20:46 (UTC)
Last Updated: 2024-10-20 14:46 (UTC)

Latest Comments

« First ‹ Previous 1 2

archdub commented on 2024-04-01 20:05 (UTC) (edited on 2024-04-01 20:10 (UTC) by archdub)

nvi2 is the standard vi in FreeBSD (it's in base), however OpenBSD uses 1.79, NetBSD uses 1.81.6, Debian uses 1.81.6.

I remember reading a comment by the vi maintainer of OpenBSD. He was asked why not put nvi2 in base. He said because it has bugs. This was a few years back. Sorry, I don't have the url for this email, it should be somewhere in the archives.

My point it that not necessarily everyone prefers nvi2, so a possibility would be to create a new AUR package for nvi2 for people to have a choice.

randiprit commented on 2024-04-01 17:29 (UTC) (edited on 2024-04-01 17:31 (UTC) by randiprit)

Current maintainer of nvi(2) :

https://github.com/lichray/nvi2

Need its companion (DB1) from the BSD world :

https://github.com/matijaskala/db1

Arch repo dependencies :

cmake
libiconv
libbsd

My way of building nvi :

1.  git clone https://github.com/lichray/nvi2
2.  cd nvi2
3.  git clone https://github.com/matijaskala/db1
4.  cmake -DCMAKE_EXE_LINKER_FLAGS=-Ldb1 -DDB_INCLUDE_DIR=db1/include .
5.  make -C db1
6.  make

Then you can copy/move the executable anywhere in your path and invoke 'nvi'. Enjoy

Invarianz commented on 2023-02-14 08:27 (UTC) (edited on 2023-02-14 08:27 (UTC) by Invarianz)

This used to be the nvi-multibyte-upstream repository. If you still have nvi-multibyte-upstream installed remove it before installing from this repo as there will be conflicts.

archdub commented on 2021-09-24 21:56 (UTC) (edited on 2021-09-25 06:15 (UTC) by archdub)

Updated to the latest in git, use sha instead of md5.

# Maintainer: cmichi <mich [at] elmueller [dot] net>
#
# This package aims to provide the latest offical, upstream nvi
# with multibyte support enabled.

pkgname=nvi-multibyte-upstream
pkgdesc="Upstream nvi with enabled multibyte support"
arch=('x86_64')
url="git://repo.or.cz/nvi.git"
license=("BSD")
conflicts=("nvi")

_COMMIT="864873d3f353ab3e54040817ec562bd3b346b55f"
source=("http://repo.or.cz/nvi.git/snapshot/$_COMMIT.tar.gz")
sha256sums=('f3deecd2f24bf58c1bc2e7f6efcc9419493c1c3b52137ee86fbaee8c83807251')

# the last official release was 1.81.6, but there have been
# commits since then. hence i append the timestamp of the
# latest commit to the version number.
_COMMIT_HASH="${_COMMIT:0:7}"
pkgver=1.81.6_20200915

pkgrel=2

build(){
  cd "$srcdir"/nvi-$_COMMIT_HASH/dist/
  ./distrib
  cd ../build.unix

  ../dist/configure \
    --prefix="$pkgdir"/usr \
    --program-prefix=n \
    --enable-widechar # for multibyte support

  make
}

package(){
  cd "$srcdir"/nvi-$_COMMIT_HASH/build.unix

  make install

  # license
  install -Dm644 "$srcdir"/nvi-$_COMMIT_HASH/LICENSE \
          "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

cmichi commented on 2018-05-07 16:42 (UTC)

@ncoop Thanks for the suggestion! I updated the package.

<deleted-account> commented on 2018-03-31 21:47 (UTC)

PKGBUILD should provide or conflict with nvi.