summaryrefslogblamecommitdiff
path: root/user/password-store/APKBUILD
blob: 744a02319b9352442a459bb77a5dca6cfed9adc2 (plain) (tree)































































                                                                                                                                                                          
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=password-store
pkgver=1.7.2
pkgrel=0
pkgdesc="Stores, retrieves, generates, and synchronizes passwords securely"
url="https://www.passwordstore.org"
arch="noarch"
options="!check"  # this is a shell script and has no tests
license="GPL-2.0-or-later"
depends="gnupg bash tree xclip libqrencode"
depends_dev=""
makedepends="$depends_dev"
subpackages="$pkgname-doc
	$pkgname-contrib
	$pkgname-bash-completion:bashcomp
	$pkgname-fish-completion:fishcomp
	$pkgname-zsh-completion:zshcomp"
source="https://git.zx2c4.com/password-store/snapshot/$pkgname-$pkgver.tar.xz"

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" \
		WITH_ALLCOMP=yes install
}

contrib() {
	pkgdesc="contrib files for pass"
	mkdir -p "$subpkgdir"/usr/share
	cp -a "$builddir"/contrib "$subpkgdir"/usr/share/$pkgname
}

bashcomp() {
	depends=""
	pkgdesc="Bash completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	mkdir -p "$subpkgdir"/usr/share/bash-completion/completions
	mv "$pkgdir"/usr/share/bash-completion/completions/* \
		"$subpkgdir"/usr/share/bash-completion/completions/
}

fishcomp() {
	depends=""
	pkgdesc="Fish completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel fish"

	mkdir -p "$subpkgdir"/usr/share/fish/completions/
	mv "$pkgdir"/usr/share/fish/vendor_completions.d/* \
		"$subpkgdir"/usr/share/fish/completions/
}

zshcomp() {
	depends=""
	pkgdesc="Zsh completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel zsh"

	mkdir -p "$subpkgdir/usr/share/zsh/site-functions"
	mv "$pkgdir"/usr/share/zsh/site-functions/* \
		"$subpkgdir"/usr/share/zsh/site-functions
}

sha512sums="e6719a7125af6ecd80fdbeb38b4e2e89e7358ff16e18739d68a04b72dfdf860294b54f7ec0ec9676a62d2e270db8f54784a357c82217a478694472f8136e3657  password-store-1.7.2.tar.xz"