summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1a8abe87671733084997431c9d41fdc1927254bc (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
# Maintainer: Jose Riha <jose1711 gmail com>

_pkgname=lssecret
pkgname=${_pkgname}-git
pkgver=r5.722013d
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"
}