This repository has been archived on 2022-01-17. You can view files and clone it, but cannot push or open issues/pull-requests.

53 lines
1.3 KiB
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

name: crystal
version: 0.31.1
release: 1
sources:{version}.tar.gz -> %{name}-%{version}.tar.gz
- llvm-6-dev
- libyaml
- libevent
- pcre
- llvm-6
- libressl
cd %{name}-%{version}
make release=1 \
FLAGS="--release --no-debug" \
CRYSTAL_PATH="$(pwd)/src" \
CRYSTAL_CONFIG_PATH="lib:%{prefix}/lib/crystal" \
CRYSTAL_CACHE_DIR="/tmp/crystal" \
make docs CRYSTAL_CACHE_DIR="/tmp/crystal"
cd %{name}-%{version}
mkdir -p \
"%{pkg}%{prefix}/bin" \
"%{pkg}%{prefix}/lib" \
install -m755 ".build/crystal" "%{pkg}%{prefix}/bin/crystal"
cp -r src "%{pkg}%{prefix}/lib/crystal"
cd "%{pkg}%{prefix}/lib/crystal"
rm -rf ext/sigfault.* llvm/ext/llvm_ext.o
mkdir -p "%{pkg}%{prefix}/share/doc/crystal"
cp -r docs "%{pkg}%{prefix}/share/doc/crystal/api"
cp -r samples "%{pkg}%{prefix}/share/doc/crystal/"
install -m644 man/crystal.1 "%{pkg}%{prefix}/share/man/man1/"
# Well probably want those at some point… in due time, and in splits.
#install -m644 etc/completion.bash "%{pkg}%{prefix}/share/bash-completion/completions/crystal"
#install -m644 etc/completion.zsh "%{pkg}%{prefix}/share/zsh/site-functions/_crystal"