1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
6 pkgdesc="Tool to test PAM applications and PAM modules"
7 url="https://cwrap.org/pam_wrapper.html"
11 makedepends=(git cmake ninja cmocka doxygen graphviz)
12 provides=(libpam_wrapper.so libpamtest.so)
13 _commit=d938a84d88c5882a08babfb5e10f03a9135237a3 # tags/pam_wrapper-1.1.4^0
14 source=("git://git.samba.org/pam_wrapper.git#commit=$_commit")
19 git describe --tags | sed 's/^pam_wrapper-//;s/_/./g;s/-/+/g'
27 cmake -S $pkgname -B build -G Ninja \
28 -DCMAKE_BUILD_TYPE=None \
29 -DCMAKE_INSTALL_PREFIX=/usr \
32 cmake --build build --target doc
36 cmake --build build --target test
40 DESTDIR="$pkgdir" cmake --install build
42 mkdir -p "$pkgdir/usr/share/doc"
43 cp -a build/doc/html "$pkgdir/usr/share/doc/$pkgname"
44 cp -a build/doc/man/man3 "$pkgdir/usr/share/man"