diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -4,14 +4,14 @@ # All my PKGBUILDs are managed at https://github.com/eli-schwartz/pkgbuilds pkgname=lastpass-cli-git -pkgver=0.9.0.r4.gb5e4f4e +pkgver=1.0.0.r43.gd60e731 pkgrel=1 pkgdesc="LastPass command line interface tool (git version)" arch=('i686' 'x86_64') url="https://lastpass.com/" license=('GPL2') depends=('openssl' 'curl' 'libxml2') -makedepends=('asciidoc' 'git') +makedepends=('asciidoc' 'git' 'cmake') optdepends=('xclip: clipboard support' 'pinentry: securely read passwords') source=("git://github.com/lastpass/${pkgname%-git}.git") @@ -23,11 +23,16 @@ pkgver() { } build() { - cd "${srcdir}/${pkgname%-git}" - make all doc + mkdir -p "${srcdir}/${pkgname%-git}/build" + cd "${srcdir}/${pkgname%-git}/build" + cmake -G "Unix Makefiles" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \ + -DCMAKE_BUILD_TYPE=None .. + make all doc-man } package() { - cd "${srcdir}/${pkgname%-git}" + cd "${srcdir}/${pkgname%-git}/build" make DESTDIR="${pkgdir}/" install install-doc } |