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=('e87acf9c652c573a4713d5582159f98f305d56ed5f754ce64f57d4194d6b3a6f'
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}