From b2b96de24d0eb686b555cb658f2152f6a897c640 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Wed, 9 Mar 2016 02:18:03 +0100 Subject: [PATCH 1/2] New package: lastpass-cli-0.9.0 --- srcpkgs/lastpass-cli/template | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 srcpkgs/lastpass-cli/template diff --git a/srcpkgs/lastpass-cli/template b/srcpkgs/lastpass-cli/template new file mode 100644 index 0000000000..4a1a89e129 --- /dev/null +++ b/srcpkgs/lastpass-cli/template @@ -0,0 +1,30 @@ +# Template file for 'lastpass-cli' +pkgname=lastpass-cli +version=0.9.0 +revision=1 +makedepends="asciidoc libressl-devel libcurl-devel libxml2-devel" +depends="libressl curl libxml2" +short_desc="Command line interface to LastPass.com" +maintainer="Michael Carlberg " +license="GPL-2" +homepage="https://lastpass.com/" +distfiles="https://github.com/lastpass/lastpass-cli/archive/v${version}.tar.gz" +checksum=e7314f0dfeec86add7c19c053ee34bb7a176e462e71727d2b345481d2d136800 + +do_build() { + cd $wrksrc + make all doc +} + +do_install() { + cd $wrksrc + make DESTDIR="$DESTDIR" install install-doc + + vbin lpass + vman lpass.1 + + vinstall contrib/lpass_bash_completion 644 usr/share/bash-completion/completions lpass + + vmkdir usr/share/examples/lpass + vcopy contrib/examples/* usr/share/examples/lpass +} From 6cce5679f64469b0a489b0f0f78270f1c0212ac9 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Wed, 9 Mar 2016 06:05:21 +0100 Subject: [PATCH 2/2] lastpass-cli: patched template file after review --- srcpkgs/lastpass-cli/template | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/srcpkgs/lastpass-cli/template b/srcpkgs/lastpass-cli/template index 4a1a89e129..c172db885a 100644 --- a/srcpkgs/lastpass-cli/template +++ b/srcpkgs/lastpass-cli/template @@ -2,8 +2,11 @@ pkgname=lastpass-cli version=0.9.0 revision=1 -makedepends="asciidoc libressl-devel libcurl-devel libxml2-devel" -depends="libressl curl libxml2" +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 " license="GPL-2" @@ -11,17 +14,16 @@ homepage="https://lastpass.com/" distfiles="https://github.com/lastpass/lastpass-cli/archive/v${version}.tar.gz" checksum=e7314f0dfeec86add7c19c053ee34bb7a176e462e71727d2b345481d2d136800 -do_build() { - cd $wrksrc - make all doc +pre_build() { + sed -i 's/^CFLAGS +=/override CFLAGS +=/g' Makefile + sed -i 's/^LDLIBS +=/override LDLIBS +=/g' Makefile } -do_install() { - cd $wrksrc - make DESTDIR="$DESTDIR" install install-doc +post_install() { + #make DESTDIR="$DESTDIR" install install-doc - vbin lpass - vman lpass.1 + #vbin lpass + #vman lpass.1 vinstall contrib/lpass_bash_completion 644 usr/share/bash-completion/completions lpass