# Maintainer: PktSurf <smlinux@pktsurf.in>
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"
   
prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

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

build() {
  make OPTTARGET="none" LIBRARY_REL="lib" PREFIX=
  make OPTTARGET="none" LIBRARY_REL="lib" PREFIX= install DESTDIR=$pkg

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
c79eb9f333f62f37d977aaf0ff9f09dd9d177727b91b0438ffbcec6e34150aebc8ae6c10bb10dbf122c9a4c59bee1feed6b946ba0c28f4f12faf6a847deb7c2d  argon2-20190702.tar.lz
"
