summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f16e3527a1e9e06eb823e3096a85d10fe1120e5 (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
# Maintainer: Joakim Repomaa <aur@j.repomaa.com>

pkgname=autopass.cr
pkgver=0.2.6
pkgrel=1
pkgdesc='a rofi frontend for pass'
arch=(x86_64)
url='https://gitlab.com/repomaa/autopass.cr'
license=('MIT')
depends=(pass rofi xdotool gpgme gc libyaml libevent dbus)
makedepends=(crystal shards rust git python systemd)

source=(
  "git+https://gitlab.com/repomaa/autopass.cr?signed#tag=v${pkgver}"
)
md5sums=(
  SKIP
)
validpgpkeys=(F0AF1CE34733B22317A8937D05557F53CD3C6458)
conflicts=('autopass' 'autopass.cr-git' 'autopass.cr-bin')
optdepends=('passed-git: batch editing of pass entries with sed')

build() {
  cd "${pkgname}"
  shards build --release
}

package() {
  cd "${pkgname}"
  install -Dm755 bin/autopass "$pkgdir/usr/bin/autopass"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 autopass.socket "$pkgdir/usr/lib/systemd/user/autopass.socket"
  install -Dm644 autopass.service "$pkgdir/usr/lib/systemd/user/autopass.service"
}

# vim:set ts=2 sw=2 et: