description="Modern library for one-way hashing of passwords"
url="https://github.com/besser82/libxcrypt/"

packager="Grat-OS Team"
maintainer="Grat-OS Team"

name="libxcrypt"
version="4.4.36"
release=2

source=(https://github.com/besser82/libxcrypt/releases/download/v$version/libxcrypt-$version.tar.xz)

build() {
  mkdir build && cd build
  ../$name-$version/configure --prefix=/usr \
               --disable-static \
               --enable-hashes=strong,glibc \
               --enable-obsolete-api=glibc \
               --disable-failure-tokens
  make
  make DESTDIR="${PKG}" install
}
