summaryrefslogblamecommitdiff
path: root/system/nvi/APKBUILD
blob: c0daf1a1eefa425c2d7b6dbb7193baac9056d0aa (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                  

             





                                                           
                                
                          
                                                               


                       







                            
         
                                  


                                                                    
                                           









                                                  

                                             
                                                        

                                                                                  
                                                            

                                                                                      

 

                                                                                                                                                               
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=nvi
pkgver=1.81.6
pkgrel=0
pkgdesc="Berkeley text editor"
url="https://sites.google.com/a/bostic.com/keithbostic/vi/"
arch="all"
options="!check"  # No test suite.
license="BSD-4-Clause-UC"
depends=""
makedepends="db-dev ncurses-dev"
subpackages="$pkgname-doc"
source="https://fossies.org/linux/privat/old/nvi-$pkgver.tar.gz
	build-fix.patch
	"

prepare() {
	default_prepare

	cd "$builddir"/dist
	chmod u+w config.sub
	update_config_sub
}

build() {
	mkdir -p "$builddir"/build
	cd "$builddir"/build
	# Note!  --disable-curses means disable *builtin* curses.
	# It makes vi(1) use ncurses instead.  That is what we want.
	LIBS="-ltinfow" ../dist/configure \
		--prefix=/usr \
		--mandir="$pkgdir"/usr/share/man \
		--build=$CBUILD \
		--host=$CHOST \
		--disable-curses
	make
}

package() {
	cd "$builddir"/build
	mkdir -p "$pkgdir/usr/bin"
	make prefix="$pkgdir/usr" install -j1
	mv "$pkgdir"/usr/bin/ex "$pkgdir"/usr/bin/ex.nvi
	mv "$pkgdir"/usr/share/man/cat1/ex.0 "$pkgdir"/usr/share/man/cat1/ex.nvi.0
	mv "$pkgdir"/usr/share/man/man1/ex.1 "$pkgdir"/usr/share/man/man1/ex.nvi.1
	mv "$pkgdir"/usr/bin/view "$pkgdir"/usr/bin/view.nvi
	mv "$pkgdir"/usr/share/man/cat1/view.0 "$pkgdir"/usr/share/man/cat1/view.nvi.0
	mv "$pkgdir"/usr/share/man/man1/view.1 "$pkgdir"/usr/share/man/man1/view.nvi.1
}

sha512sums="1be798daf0cd05010ddaf0aa0510dc799708fd79d4b243e2700adff18e931ddd9d11621796fa8086088c3e93ba20f15ab86783732665169c52b73eaf587ff0b3  nvi-1.81.6.tar.gz
b84cfb83ea5ed15f5c7d9e608771a2248531be388fa19340e90074d37e10f6f75c8b965a40f5288275973f23ed6fda54aa4ef990b43d4828d174b66fd3ced1e9  build-fix.patch"