: nply/foundationpkgs

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 
# Contributor: Bharatvaj Hemanth <bharatvaj@nonplanar.org>
# Maintainer: Bharatvaj Hemanth <bharatvaj@nonplanar.org>
pkgname=otpw
pkgver=1.5
pkgdesc="A one-time password login package"
pkgrel=0
url="https://www.cl.cam.ac.uk/~mgk25/otpw.html"
arch="all"
license="GPL-2-or-later"
makedepends="rsync"
source="
https://www.cl.cam.ac.uk/~mgk25/download/otpw-1.5.tar.gz
00-Makefile.patch
"
depends="linux-pam-dev"
options="!check"

build() {
    cd "$builddir"
    make CFLAGS="$CFLAGS -fPIC"
}

package() {
    cd "$builddir"
    install -Dm0755 "pam_otpw.so" "$pkgdir/usr/lib/security/pam_otpw.so"
    install -Dm0755 "otpw-gen"    "$pkgdir/usr/bin/otpw-gen"
}

sha512sums="
bf547359ef28acac8e41eb4a83f1a4e28d6855bfb62cff75ff90169df71144e41f7ac3846bdfae8db6eec2ab1bf51c0c4e9b8016cbc3f99fc76697c59119c504  otpw-1.5.tar.gz
7b0cc0a809a74635de2398a3c1cbcaf19b915bdcc31d86e8f3faf7332ba7e420aae1fdd21ff06720e4940d449741ce2d2534bed5d3782efaf6c03fac2b8f8022  00-Makefile.patch
"