From 079f71214a4d5844581b08ba847477215b245ad1 Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Thu, 15 Aug 2019 17:31:51 +0200 Subject: [PATCH] Recipes for `package` and `service` added. --- package/recipe.spec | 18 ++++++++++++++++++ service/recipe.spec | 18 ++++++++++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 package/recipe.spec diff --git a/package/recipe.spec b/package/recipe.spec new file mode 100644 index 0000000..ca33ef5 --- /dev/null +++ b/package/recipe.spec @@ -0,0 +1,18 @@ +name: package +version: 0.0.1 +release: 1 +sources: https://git.karchnu.fr/WeirdOS/package/archive/832edb5f8d982019d5d106acc78161a5f90863cf.tar.gz +build-dependencies: crystal, shards +# FIXME: FIXME: Build this statically in. +dependencies: gc, libevent, pcre + +dirname: package +@configure + cd %{dirname} + shards install +@build + cd %{dirname} + CRYSTAL_PATH="$(crystal env CRYSTAL_PATH):lib" make PREFIX=/usr +@install + cd %{dirname} + make PREFIX=/usr DESTDIR="%{pkg}" install diff --git a/service/recipe.spec b/service/recipe.spec index 0a4d733..7238995 100644 --- a/service/recipe.spec +++ b/service/recipe.spec @@ -1,4 +1,18 @@ name: service version: 0.0.1 -release: 1 -sources: +sources: https://git.karchnu.fr/WeirdOS/service/archive/75e500adcf75b8cf0210a7271cdd5a9109988eae.tar.gz +build-dependencies: crystal, build.zsh +# FIXME: FIXME: Build this statically in. +dependencies: gc, libevent, pcre + +dirname: service +@configure + cd %{dirname} + build.zsh -c + shards install +@build + cd %{dirname} + CRYSTAL_PATH="$(crystal env CRYSTAL_PATH):lib" make PREFIX=/usr +@install + cd %{dirname} + make PREFIX=/usr DESTDIR="%{pkg}" install