 82734470d2
			
		
	
	
		82734470d2
		
	
	
	
		
			
	
		
	
	
		
			All checks were successful
		
		
	
	ci/woodpecker/push/build Pipeline was successful
				
			- update makedeb - use bin, git, normal, leafee98 to classify packages - only build package from leafee98 and bin in ci - add script to build all packages locally - add more log about running hook in build.sh
		
			
				
	
	
		
			34 lines
		
	
	
		
			749 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			749 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #/usr/bin/env bash
 | |
| 
 | |
| pkgname="neovim"
 | |
| arch="amd64"
 | |
| pkgver="0.9.1"
 | |
| pkgrel=5
 | |
| pkgcommit=""
 | |
| pkgdesc="A modern editor"
 | |
| url="https://github.com/neovim/neovim"
 | |
| maintainer="Leafee98 <me@leafee98.com>"
 | |
| 
 | |
| source=(
 | |
|     "nvim-linux64.tar.gz::https://github.com/neovim/neovim/releases/download/v${pkgver}/nvim-linux64.tar.gz"
 | |
| )
 | |
| 
 | |
| function package {
 | |
|     mkdir -p "${pkgdir}/usr/local"
 | |
|     mv "${srcdir}/nvim-linux64/bin" "${pkgdir}/usr/bin"
 | |
|     mv "${srcdir}/nvim-linux64/lib" "${pkgdir}/usr/lib"
 | |
|     mv "${srcdir}/nvim-linux64/share" "${pkgdir}/usr/share"
 | |
| }
 | |
| 
 | |
| function debian_postinst {
 | |
| cat << EOF
 | |
| update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 80
 | |
| EOF
 | |
| }
 | |
| 
 | |
| function debian_prerm {
 | |
| cat << EOF
 | |
| update-alternatives --remove editor /usr/bin/nvim
 | |
| EOF
 | |
| }
 |