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')
13 install=libxcrypt.install
14 validpgpkeys=('678CE3FEE430311596DB8C16F52E98007594C21D') # Björn 'besser82' Esser
15 source=("${url}/releases/download/v${pkgver}/${pkgbase}-${pkgver}.tar.xz"{,.asc})
16 sha256sums=('e87acf9c652c573a4713d5582159f98f305d56ed5f754ce64f57d4194d6b3a6f'
20 mkdir build-libxcrypt build-libxcrypt-compat
22 cd "${srcdir}/build-libxcrypt/"
23 "${srcdir}/${pkgbase}-${pkgver}"/configure \
26 --enable-hashes=strong,glibc \
27 --enable-obsolete-api=no \
28 --disable-failure-tokens
31 cd "${srcdir}/build-libxcrypt-compat/"
32 "${srcdir}/${pkgbase}-${pkgver}"/configure \
35 --enable-hashes=strong,glibc \
36 --enable-obsolete-api=glibc \
37 --disable-failure-tokens
50 make DESTDIR="${pkgdir}" install
53 package_libxcrypt-compat() {
54 pkgdesc='Modern library for one-way hashing of passwords - legacy API functions'
57 cd build-libxcrypt-compat/
59 make DESTDIR="${pkgdir}" install
61 rm -rf "${pkgdir}"/usr/{include,lib/{lib*.so,pkgconfig},share}