blob: cd2310127b9d009897f1fae3ab375d83ce60033a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Tom Nguyen <tom81094@gmail.com>
# Contributor: Patrick Wozniak <email@patwoz.de>
pkgname=masterpassword-cli-git
pkgver=2.6.cli.2.r3.g5ef69aa0
pkgrel=1
pkgdesc="CLI version of Master Password. (git-version)"
arch=('any')
url="https://github.com/Lyndir/MasterPassword"
license=('GPL3')
optdepends=(
'xclip: copy password to clipboard'
)
makedepends=(
'gcc'
'git'
'libsodium'
'openssl'
)
conflicts=(
'masterpassword-cli'
'masterpassword-cli-git'
)
source=("${pkgname%-git}::git+https://github.com/Lyndir/MasterPassword.git")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
echo $(git describe --match '*-cli*' --long --dirty --broken) | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g;s/\.rc/rc/;s/ //g'
}
build() {
cd "${pkgname%-git}/platform-independent/cli-c"
targets="mpw" ./build
}
package() {
cd "${pkgname%-git}"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"
cd "platform-independent/cli-c"
/usr/bin/install -Dm755 "mpw" "$pkgdir/usr/bin/mpw"
}
|