summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c057ba621bee82549fb98bc4759116a65b3f7ee (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
# Contributor: Lex Black <autumn-wind at web dot de>
# Contributor: nmeum <nmeum-aur@8pit.net>

pkgname=tpm
pkgver=1.3.2
pkgrel=1
pkgdesc='tiny password manager'
url='http://github.com/nmeum/tpm'
license=('GPL')
arch=('any')
depends=('gnupg')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/nmeum/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('9ea145e7f731c50ba3a8dfa252c7d0b31cd5b12b03db33dd95d7d8ebb53d4e6b')


build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make PREFIX=/usr DESTDIR="${pkgdir}" install

  install -Dm644 contrib/zsh_completion "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
  install -Dm644 contrib/bash_completion "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
}