diff --git a/srcpkgs/masterpassword-cli/template b/srcpkgs/masterpassword-cli/template new file mode 100644 index 0000000000..7cb83a08d0 --- /dev/null +++ b/srcpkgs/masterpassword-cli/template @@ -0,0 +1,28 @@ +# Template file for 'masterpassword-cli' +pkgname=masterpassword-cli +version=2.6 +revision=1 +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 " +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 +}