void-packages/srcpkgs/lastpass-cli/template

26 lines
797 B
Bash

# Template file for 'lastpass-cli'
pkgname=lastpass-cli
version=1.0.0
revision=1
build_style=gnu-makefile
make_build_target="all doc"
make_install_target="install install-doc"
hostmakedepends="pkg-config asciidoc"
makedepends="libressl-devel libcurl-devel libxml2-devel"
short_desc="Command line interface to LastPass.com"
maintainer="Michael Carlberg <c@rlberg.se>"
license="GPL-2"
homepage="https://lastpass.com/"
distfiles="https://github.com/lastpass/lastpass-cli/archive/v${version}.tar.gz"
checksum=42096c0bd3972b0e9cc9cef32fbf141e47b04b9e2387fb3abe8b105e135fb41e
pre_build() {
sed -i 's/^CFLAGS +=/override CFLAGS +=/g' Makefile
sed -i 's/^LDLIBS +=/override LDLIBS +=/g' Makefile
}
post_install() {
vmkdir usr/share/examples/lpass
vcopy contrib/examples/* usr/share/examples/lpass
}