alr-bin 0.0.17-2
This commit is contained in:
		@@ -1,10 +1,11 @@
 | 
				
			|||||||
name="alr-bin"
 | 
					name="alr-bin"
 | 
				
			||||||
version="0.0.17"
 | 
					version="0.0.17"
 | 
				
			||||||
release="1"
 | 
					release="2"
 | 
				
			||||||
desc="ALT Linux Repository tool - binary release"
 | 
					desc="ALT Linux Repository - binary release"
 | 
				
			||||||
homepage="https://gitea.plemya-x.ru/Plemya-x/alr"
 | 
					homepage="https://gitea.plemya-x.ru/Plemya-x/ALR"
 | 
				
			||||||
maintainer="ALR Updater Bot"
 | 
					maintainer='Evgeniy Khramov <xpamych@yandex.ru>'
 | 
				
			||||||
architectures=('x86_64')
 | 
					maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
 | 
				
			||||||
 | 
					architectures=('all')
 | 
				
			||||||
license=('GPL-3.0-or-later')
 | 
					license=('GPL-3.0-or-later')
 | 
				
			||||||
provides=('alr')
 | 
					provides=('alr')
 | 
				
			||||||
conflicts=('alr' 'alr-git')
 | 
					conflicts=('alr' 'alr-git')
 | 
				
			||||||
@@ -12,27 +13,14 @@ conflicts=('alr' 'alr-git')
 | 
				
			|||||||
sources=("https://gitea.plemya-x.ru/Plemya-x/ALR/releases/download/v0.0.17/alr-0.0.17-linux-x86_64.tar.gz")
 | 
					sources=("https://gitea.plemya-x.ru/Plemya-x/ALR/releases/download/v0.0.17/alr-0.0.17-linux-x86_64.tar.gz")
 | 
				
			||||||
checksums=("1af629d138e4b09e16e9b44c5497dd102bde2fcded54bf5c4efafdc3fde0eada")
 | 
					checksums=("1af629d138e4b09e16e9b44c5497dd102bde2fcded54bf5c4efafdc3fde0eada")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
backup=()
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package() {
 | 
					package() {
 | 
				
			||||||
    # Распаковываем архив
 | 
					    install-binary alr
 | 
				
			||||||
    cd "${srcdir}"
 | 
					    install-completion bash alr < ./completion/alr
 | 
				
			||||||
    
 | 
					    install-completion zsh alr < ./completion/_alr
 | 
				
			||||||
    # Устанавливаем бинарный файл
 | 
					}
 | 
				
			||||||
    install -Dm755 alr "${pkgdir}/usr/bin/alr"
 | 
					
 | 
				
			||||||
    
 | 
					files() {
 | 
				
			||||||
    # Устанавливаем bash completion если есть
 | 
					  	echo ./usr/bin/alr
 | 
				
			||||||
    if [ -f "completions/alr.bash" ]; then
 | 
					  	echo ./usr/share/bash-completion/completions/alr
 | 
				
			||||||
        install -Dm644 "completions/alr.bash" "${pkgdir}/usr/share/bash-completion/completions/alr"
 | 
					  	echo ./usr/share/zsh/site-functions/_alr
 | 
				
			||||||
    fi
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    # Устанавливаем zsh completion если есть
 | 
					 | 
				
			||||||
    if [ -f "completions/_alr" ]; then
 | 
					 | 
				
			||||||
        install -Dm644 "completions/_alr" "${pkgdir}/usr/share/zsh/site-functions/_alr"
 | 
					 | 
				
			||||||
    fi
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    # Устанавливаем fish completion если есть
 | 
					 | 
				
			||||||
    if [ -f "completions/alr.fish" ]; then
 | 
					 | 
				
			||||||
        install -Dm644 "completions/alr.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/alr.fish"
 | 
					 | 
				
			||||||
    fi
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user