From 10eba9b167ab5ccd9077b7540870e311036fe524 Mon Sep 17 00:00:00 2001
From: Piraty <piraty@users.noreply.github.com>
Date: Mon, 12 Mar 2018 21:05:14 +0100
Subject: [PATCH] New package: argon2-20171227

---
 common/shlibs           |  1 +
 srcpkgs/argon2/template | 30 ++++++++++++++++++++++++++++++
 srcpkgs/libargon2       |  1 +
 srcpkgs/libargon2-devel |  1 +
 4 files changed, 33 insertions(+)
 create mode 100644 srcpkgs/argon2/template
 create mode 120000 srcpkgs/libargon2
 create mode 120000 srcpkgs/libargon2-devel

diff --git a/common/shlibs b/common/shlibs
index 35bd1adcae..d9da9fb0c3 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3121,3 +3121,4 @@ libwayland-client++.so.0.2 libwaylandpp-2.2.0_1
 libwayland-cursor++.so.0.2 libwaylandpp-2.2.0_1
 libwayland-client-extra++.so.0.2 libwaylandpp-2.2.0_1
 libfwup.so.1 fwupdate-10_1
+libargon2.so.1 libargon2-20171227_1
diff --git a/srcpkgs/argon2/template b/srcpkgs/argon2/template
new file mode 100644
index 0000000000..2359788b45
--- /dev/null
+++ b/srcpkgs/argon2/template
@@ -0,0 +1,30 @@
+# Template file for 'argon2'
+pkgname=argon2
+version=20171227
+revision=1
+wrksrc=phc-winner-argon2-${version}
+build_style=gnu-makefile
+make_use_env=yes
+short_desc="Password hashing function"
+maintainer="Piraty <piraty1@inbox.ru>"
+license="CC0 1.0 Universal, Apache 2.0"
+homepage="https://github.com/P-H-C/phc-winner-argon2"
+distfiles="https://github.com/P-H-C/phc-winner-argon2/archive/${version}.tar.gz"
+checksum=eaea0172c1f4ee4550d1b6c9ce01aab8d1ab66b4207776aa67991eb5872fdcd8
+
+libargon2_package() {
+	short_desc+="Password hashing library"
+	pkg_install() {
+		vmove "usr/lib/*.so.*"
+	}
+}
+
+libargon2-devel_package() {
+	short_desc+="Password hashing library - development files"
+	depends="libargon2>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+	}
+}
diff --git a/srcpkgs/libargon2 b/srcpkgs/libargon2
new file mode 120000
index 0000000000..8c5c52e12d
--- /dev/null
+++ b/srcpkgs/libargon2
@@ -0,0 +1 @@
+argon2
\ No newline at end of file
diff --git a/srcpkgs/libargon2-devel b/srcpkgs/libargon2-devel
new file mode 120000
index 0000000000..8c5c52e12d
--- /dev/null
+++ b/srcpkgs/libargon2-devel
@@ -0,0 +1 @@
+argon2
\ No newline at end of file