aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cce4189187ae9d8d75f26753ee101f4c4b9d810f (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
# Maintainer: Stephan Koglin-Fischer <stephan dot koglin-fischer at funzt dot dev>
pkgname=dashlane-cli-git
pkgver=v1.15.1.r0.g8368d87
pkgrel=68
pkgdesc="Dashlane CLI GitHub repository version bundled with asdf-vm to ensure using the correct node version."
arch=('x86_64')
url="https://github.com/Dashlane/dashlane-cli"
license=('MIT')
depends=('asdf-vm')
makedepends=('git')
source=("$pkgname::git+$url.git" '.tool-versions' 'commands.sh')
install=".INSTALL"
b2sums=('SKIP'
        '7d947ad3269a67f0987a277e10b082931ecce24330e82debd0d147f3ea24a0d9c04a91c0f711fce286a17a789c883bb626685bc08ac78040c28a5ca677a0cbf8'
        'fd7d42a58b56480eeb448a1af00934ce056a10f5fd3f80f23a61882ba8692b89a2aa84bd5664148dfc67091af00c9708208519d187abd2a6799b7ddbad3ab306')
# option strip is important for dcli to work properly and avoid
# 'Pkg: Error reading from file.' error in production
options=(!strip)

pkgver() {
  cd "$srcdir/$pkgname"
  git describe --long --tags --abbrev=7 | sed 's/^foo-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  $SHELL -c "source ./commands.sh && prepare_commands $srcdir $pkgname"
}

build() {
  $SHELL -c "source ./commands.sh && build_commands $srcdir $pkgname"
}

package() {
  $SHELL -c "source ./commands.sh && package_commands $srcdir $pkgname $pkgdir"
}