summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 007d3ddbd81a13799d196222e029d56c867a66c8 (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
# Maintainer: Freya Valent <bonifacefreya@gmail.com>
pkgname=pam_cookie
pkgver=1.0
pkgrel=1
pkgdesc="PAM module for keeping one-time-passwords valid over a period of time"
arch=('x86_64')
url="https://github.com/jwhitbeck/pam_cookie"
license=('GPL')
depends=('pam' 'openssl')
source=("https://github.com/jwhitbeck/${pkgname}/archive/v${pkgver}.tar.gz"
		"fix-makefile-for-makepkg.patch")
sha256sums=('31b94818178d46cc8b6de29b1a48f9b87e4395e44e20eb0a04403d8b4d431301'
            '67b607acc90bb9ddfff367830310fe48adf7baad0fb3c9515ea1ad576a26aa41')

prepare() {
	cd "$srcdir/$pkgname-$pkgver"
	patch -p1 < ../fix-makefile-for-makepkg.patch
}

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

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