34 lines
934 B
Plaintext
34 lines
934 B
Plaintext
# Description: Extended crypt library for descrypt, md5crypt, bcrypt, and others
|
|
# URL: https://github.com/besser82/libxcrypt
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
# Depends on: glibc
|
|
|
|
name=libxcrypt
|
|
version=4.4.38
|
|
release=1
|
|
source=(https://github.com/besser82/libxcrypt/releases/download/v$version/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--enable-hashes=strong,glibc \
|
|
--enable-obsolete-api=no \
|
|
--enable-shared \
|
|
--enable-static \
|
|
--with-pkgconfigdir=/usr/lib/pkgconfig \
|
|
--disable-failure-tokens \
|
|
--disable-silent-rules \
|
|
--disable-valgrind
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
install -d $PKG/lib
|
|
mv $PKG/usr/lib/libcrypt.so.* $PKG/lib
|
|
ln -sf ../../lib/$(readlink $PKG/usr/lib/libcrypt.so) $PKG/usr/lib/libcrypt.so
|
|
|
|
rm -r $PKG/usr/share/man/man3/{crypt,crypt_r}.3
|
|
}
|