summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f5d30fbca3bd192d5293a317abff3e9b397717a2 (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
37
38
39
40
41
# Maintainer: Bandie <bandie@chaospott.de>

pkgname=pam_panic
pkgver=0.3.4
pkgrel=2
pkgdesc="A PAM module that protects sensitive data and provides a panic function for emergency situations. Authentication through passwords or removable media."
arch=('any')
url="https://github.com/pampanic/pam_panic"
license=('GPL3')
depends=('cryptsetup' 'dialog' 'gettext')
makedepends=('git' 'automake' 'autoconf' 'make' 'gcc' 'which' 'groff' 'gettext' 'm4' 'fakeroot' 'gawk' 'pam' 'cryptsetup' 'dialog' 'po4a')
checkdepends=('bcunit-cunit-compat')
validpgpkeys=('E2D7876915312785DC086BFCC1E133BC65A822DD')
source=(
  "https://github.com/pampanic/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"
  "https://github.com/pampanic/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz.asc"
)
sha512sums=(
  '7355ec1ce3d5f83147fe2e5aa5cb40f8ac121f8b34c9a01d5465a7a9df8e9b911adacb798f44a09f5505490860fc9d219cd3f7a397bf3ec454ba13a0d2e5b60b'
  'c48bf558d402f397dd838dde2c306df9d698b917ac49c2ad0725df2feed6494c81c526ca5ba48c88e918f57bae4f20fb492995075f2b84a9a54ecfbe205bb56a'
)

build() {
  cd $pkgname-$pkgver
  autoreconf -i
  ./configure --prefix=/usr
  make
}

check() {
  cd $pkgname-$pkgver
  make test
  make clean
  make
}

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