From 06f8ed9eeb27a86b21107ebbda651f56ae50a267 Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Thu, 29 Aug 2019 16:14:32 +0200 Subject: [PATCH] package: recipe bump, default configuration added --- package/config.cfg | 16 ++++++++++++++++ package/recipe.spec | 14 ++++++++++---- 2 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 package/config.cfg diff --git a/package/config.cfg b/package/config.cfg new file mode 100644 index 0000000..97ef34b --- /dev/null +++ b/package/config.cfg @@ -0,0 +1,16 @@ +# /etc/packages.cfg + +prefixes: + - /usr/weirdos + - /usr/bad + - / + +packages-directory: /srv/packages +sources-directory: /srv/sources + +environment: + - CFLAGS: -O2 -fPIC + - CXXFLAGS: -O2 -fPIC + - MAKEFLAGS: -j4 + +# EOF diff --git a/package/recipe.spec b/package/recipe.spec index c83cf62..62b63b9 100644 --- a/package/recipe.spec +++ b/package/recipe.spec @@ -1,6 +1,9 @@ name: package -version: 0.2.0 -sources: https://git.karchnu.fr/WeirdOS/package/archive/%{version}.tar.gz -> %{name}-%{version}.tar.gz +version: 0.5.0 +sources: + - https://git.karchnu.fr/WeirdOS/package/archive/%{version}.tar.gz -> %{name}-%{version}.tar.gz + - config.cfg + build-dependencies: crystal, shards # FIXME: FIXME: Build this statically in. dependencies: gc, libevent, pcre @@ -11,7 +14,10 @@ dirname: package shards install @build cd %{dirname} - make PREFIX=/usr + make PREFIX="%{prefix}" @install cd %{dirname} - make PREFIX=/usr DESTDIR="%{pkg}" install + make PREFIX="%{prefix}" DESTDIR="%{pkg}" install + + mkdir -p "%{pkg}/etc" + cp ../config.cfg "%{pkg}/etc/package.cfg"