28 lines
1,002 B
Bash
28 lines
1,002 B
Bash
# Template file for 'masterpassword-cli'
|
|
pkgname=masterpassword-cli
|
|
version=2.6
|
|
revision=4
|
|
wrksrc=MasterPassword-${version}-cli-3
|
|
build_wrksrc=platform-independent/cli-c
|
|
build_style=cmake
|
|
cmake_builddir=cmake
|
|
hostmakedepends="libsodium-devel json-c-devel ncurses-devel"
|
|
makedepends="libsodium-devel json-c-devel ncurses-devel"
|
|
short_desc="CLI version of Master Password"
|
|
maintainer="SolitudeSF <solitudesf@protonmail.com>"
|
|
license="GPL-3"
|
|
homepage="https://ssl.masterpasswordapp.com/"
|
|
distfiles="https://github.com/Lyndir/MasterPassword/archive/${version}-cli-3.tar.gz"
|
|
checksum=35dc64bc74c04b534824c21da96e4a10fc7978da376fcc036d7ec08fd800ab7a
|
|
|
|
pre_configure() {
|
|
sed -i 's|\"-O3\"|\"-fPIC -O3\"|' ${wrksrc}/${build_wrksrc}/CMakeLists.txt
|
|
echo '2.6-cli-3-0-ga85eff42' > ${wrksrc}/${build_wrksrc}/VERSION
|
|
}
|
|
|
|
do_install() {
|
|
cat mpw.completion.bash | tail -n +3 >> bashcomplib
|
|
vinstall bashcomplib 644 usr/share/bash-completion/completions mpw
|
|
vlicense ${wrksrc}/LICENSE
|
|
vbin ${cmake_builddir}/mpw
|
|
}
|