app=argon2
version=20190702
build=1sml
homepage="https://github.com/P-H-C/phc-winner-argon2"
download="https://github.com/P-H-C/phc-winner-argon2/archive/refs/tags/$version.tar.gz"
desc="A password hashing function written in C"
requires="musl"
   
build() {
  mkandenterbuilddir
  rm -rf phc-winner-$app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd phc-winner-$app-$version
  fixbuilddirpermissions

  make OPTTARGET="none" LIBRARY_REL="lib" PREFIX="/"
  make OPTTARGET="none" LIBRARY_REL="lib" PREFIX="/" install DESTDIR=$pkg

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
0a4cb89e8e63399f7df069e2862ccd05308b7652bf4ab74372842f66bcc60776399e0eaf979a7b7e31436b5e6913fe5b0a6949549d8c82ebd06e0629b106e85f  argon2-20190702.tar.gz
"
