summaryrefslogtreecommitdiff
path: root/pkg/monocypher/gen.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2018-03-10 16:52:46 -0800
committerMichael Forney <mforney@mforney.org>2018-03-10 17:46:18 -0800
commit82cf42cb8ea7ba3b79afbb55296cb6946efe6e3a (patch)
tree1d9e0c4278d44ea22eb8e78e76c5cef69d837b91 /pkg/monocypher/gen.lua
parent0f505594eae34677477193adfd2234fa071fb327 (diff)
Add monocypher 2.0.1
Diffstat (limited to 'pkg/monocypher/gen.lua')
-rw-r--r--pkg/monocypher/gen.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkg/monocypher/gen.lua b/pkg/monocypher/gen.lua
new file mode 100644
index 00000000..8b8b2b13
--- /dev/null
+++ b/pkg/monocypher/gen.lua
@@ -0,0 +1,11 @@
+cflags{'-std=c99', '-Wall', '-Wextra'}
+
+pkg.hdrs = {
+ copy('$outdir/include', '$srcdir/src', {'monocypher.h'}),
+ install=true,
+}
+
+lib('libmonocypher.a', {'src/monocypher.c'})
+file('lib/libmonocypher.a', '644', '$outdir/libmonocypher.a')
+
+fetch 'git'