Obsolete
/
recipes
Archived
3
0
Fork 0
This repository has been archived on 2022-01-17. You can view files and clone it, but cannot push or open issues/pull-requests.
recipes/package/recipe.spec

24 lines
509 B
Plaintext

name: package
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
dirname: package
@configure
cd %{dirname}
shards install
@build
cd %{dirname}
make PREFIX="%{prefix}"
@install
cd %{dirname}
make PREFIX="%{prefix}" DESTDIR="%{pkg}" install
mkdir -p "%{pkg}/etc"
cp ../config.cfg "%{pkg}/etc/package.cfg"