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+https://git.samba.org/pam_wrapper.git#commit=$_commit")
19 git describe --tags | sed 's/^pam_wrapper-//;s/[^-]*-g/r&/;s/-/+/g'
27 cmake -S $pkgname -B build -G Ninja \
28 -DCMAKE_INSTALL_PREFIX=/usr \
29 -DCMAKE_BUILD_TYPE=None \
32 cmake --build build --target doc
37 ctest --output-on-failure --stop-on-failure -j$(nproc)
41 DESTDIR="$pkgdir" cmake --install build
43 mkdir -p "$pkgdir/usr/share/doc"
44 cp -a build/doc/html "$pkgdir/usr/share/doc/$pkgname"
45 cp -a build/doc/man/man3 "$pkgdir/usr/share/man"
48 # vim:set sw=2 sts=-1 et: