summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8961a70eb84c1cd3dc975830ea0993fdaed2be24 (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
# Maintainer: Jose Riha <jose1711 gmail com>
# Maintainer: Samuel Braun <dr.br web de>

_pkgname=lssecret
pkgname=${_pkgname}-git
pkgver=r10.20fd771
pkgrel=2
pkgdesc="utility to list all secret items in a secret service using libsecret"
arch=('i686' 'x86_64')
url="https://gitlab.com/GrantMoyer/lssecret"
license=('Unlicense')
depends=('libsecret')
conflicts=(${pkgname})
provides=(${pkgname})
source=("git+https://gitlab.com/GrantMoyer/lssecret.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/$_pkgname"
  make
}

package() {
  cd "${srcdir}/$_pkgname"
  make DESTDIR="${pkgdir}/usr" install
  chmod 755 "${pkgdir}/usr/bin/lssecret" 
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
  install -Dm644 README.md "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
}