2022-03-20 13:19:37 +01:00
|
|
|
# Maintainer: Christian Hesse <mail@eworm.de>
|
|
|
|
|
|
|
|
pkgbase=libxcrypt
|
|
|
|
pkgname=(libxcrypt libxcrypt-compat)
|
2023-07-06 00:40:48 +02:00
|
|
|
pkgver=4.4.36
|
2024-07-25 13:06:08 +02:00
|
|
|
pkgrel=2
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc='Modern library for one-way hashing of passwords'
|
|
|
|
arch=('x86_64')
|
|
|
|
url='https://github.com/besser82/libxcrypt/'
|
2023-07-06 00:40:48 +02:00
|
|
|
license=('LGPL')
|
2022-03-20 13:19:37 +01:00
|
|
|
depends=('glibc')
|
|
|
|
provides=('libcrypt.so')
|
|
|
|
install=libxcrypt.install
|
|
|
|
validpgpkeys=('678CE3FEE430311596DB8C16F52E98007594C21D') # Björn 'besser82' Esser
|
|
|
|
source=("${url}/releases/download/v${pkgver}/${pkgbase}-${pkgver}.tar.xz"{,.asc})
|
2023-07-06 00:40:48 +02:00
|
|
|
sha256sums=('e5e1f4caee0a01de2aee26e3138807d6d3ca2b8e67287966d1fefd65e1fd8943'
|
2022-03-20 13:19:37 +01:00
|
|
|
'SKIP')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
mkdir build-libxcrypt build-libxcrypt-compat
|
|
|
|
|
|
|
|
cd "${srcdir}/build-libxcrypt/"
|
|
|
|
"${srcdir}/${pkgbase}-${pkgver}"/configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--disable-static \
|
|
|
|
--enable-hashes=strong,glibc \
|
|
|
|
--enable-obsolete-api=no \
|
|
|
|
--disable-failure-tokens
|
|
|
|
make
|
|
|
|
|
|
|
|
cd "${srcdir}/build-libxcrypt-compat/"
|
|
|
|
"${srcdir}/${pkgbase}-${pkgver}"/configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--disable-static \
|
|
|
|
--enable-hashes=strong,glibc \
|
|
|
|
--enable-obsolete-api=glibc \
|
|
|
|
--disable-failure-tokens
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd build-libxcrypt/
|
|
|
|
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package_libxcrypt() {
|
|
|
|
cd build-libxcrypt/
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_libxcrypt-compat() {
|
|
|
|
pkgdesc='Modern library for one-way hashing of passwords - legacy API functions'
|
|
|
|
depends=('libxcrypt')
|
|
|
|
|
|
|
|
cd build-libxcrypt-compat/
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
rm -rf "${pkgdir}"/usr/{include,lib/{lib*.so,pkgconfig},share}
|
|
|
|
}
|