jobcore/libxcrypt/PKGBUILD
2022-11-20 07:07:42 +02:00

76 lines
1.9 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgbase=libxcrypt
pkgname=(libxcrypt libxcrypt-compat)
pkgver=4.4.33
pkgrel=01
pkgdesc='Modern library for one-way hashing of passwords'
arch=('x86_64')
url='https://github.com/besser82/libxcrypt/'
depends=('glibc')
makedepends=(gcc)
provides=('libcrypt.so')
#options=('debug')
install=libxcrypt.install
source=("${url}/releases/download/v${pkgver}/${pkgbase}-${pkgver}.tar.xz"{,.asc})
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}
}
#---- license gpg-key sha256sums ----
license=('GPL')
validpgpkeys=('678CE3FEE430311596DB8C16F52E98007594C21D') # Björn 'besser82' Esser
sha256sums=(e87acf9c652c573a4713d5582159f98f305d56ed5f754ce64f57d4194d6b3a6f # libxcrypt-4.4.33.tar.xz
23347dc4535e050ef0ca4f0f95b3d95625c868c876fdca0d341412eb1871e0b3) # libxcrypt-4.4.33.tar.xz.asc