1 # Maintainer: Christian Hesse <mail@eworm.de>
4 pkgname=(libxcrypt libxcrypt-compat)
7 pkgdesc='Modern library for one-way hashing of passwords'
9 url='https://github.com/besser82/libxcrypt/'
12 provides=('libcrypt.so')
14 install=libxcrypt.install
15 validpgpkeys=('678CE3FEE430311596DB8C16F52E98007594C21D') # Björn 'besser82' Esser
16 source=("${url}/releases/download/v${pkgver}/${pkgbase}-${pkgver}.tar.xz"{,.asc})
17 sha256sums=('9e936811f9fad11dbca33ca19bd97c55c52eb3ca15901f27ade046cc79e69e87'
21 mkdir build-libxcrypt build-libxcrypt-compat
23 cd "${srcdir}/build-libxcrypt/"
24 "${srcdir}/${pkgbase}-${pkgver}"/configure \
27 --enable-hashes=strong,glibc \
28 --enable-obsolete-api=no \
29 --disable-failure-tokens
32 cd "${srcdir}/build-libxcrypt-compat/"
33 "${srcdir}/${pkgbase}-${pkgver}"/configure \
36 --enable-hashes=strong,glibc \
37 --enable-obsolete-api=glibc \
38 --disable-failure-tokens
51 make DESTDIR="${pkgdir}" install
54 package_libxcrypt-compat() {
55 pkgdesc='Modern library for one-way hashing of passwords - legacy API functions'
58 cd build-libxcrypt-compat/
60 make DESTDIR="${pkgdir}" install
62 rm -rf "${pkgdir}"/usr/{include,lib/{lib*.so,pkgconfig},share}