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/crystal/recipe.spec

28 lines
726 B
Plaintext

name: crystal
version: 0.29.9
release: 1
sources: https://github.com/crystal-lang/crystal/archive/8b3dba72bd681118b2b761c68d7d2fdcbbbfceb2.zip
options:
- make: release=1 LLVM_CONFIG=/usr/bad/llvm-6/bin/llvm-config
dependencies:
- libyaml
- libevent
- pcre
- openssl
dirname: crystal-8b3dba72bd681118b2b761c68d7d2fdcbbbfceb2
@install
set -e
cd %{dirname};
PKG="%{pkg}";
mkdir -p "$PKG/usr/bin";
mkdir -p "$PKG/usr/lib/crystal/core";
mkdir -p "$PKG/usr/share/man/man1";
%{name} -D -m 755 .build/crystal "$PKG"/usr/bin/crystal;
%{name} -D -m 644 man/crystal.1 "$PKG"/usr/share/man/man1/crystal.1;
cp -r src/* "$PKG/usr/lib/crystal/core";
cd "$PKG/usr/lib/crystal/core";
nuke ext/sigfault.* llvm/ext/llvm_ext.o