Package Details: crystal-git 1.10.1.r69.gf8fafc386c-1

Git Clone URL: (read-only, click to copy)
Package Base: crystal-git
Description: The Crystal Programming Language
Upstream URL:
Keywords: compiler crystal programming
Licenses: Apache
Conflicts: crystal
Provides: crystal
Submitter: drizz
Maintainer: jhass (bararchy)
Last Packager: jhass
Votes: 7
Popularity: 0.000000
First Submitted: 2014-04-28 23:08 (UTC)
Last Updated: 2023-12-02 14:10 (UTC)

Dependencies (16)

Required by (50)

Sources (1)

Latest Comments

1 2 Next › Last »

nobodywasishere commented on 2023-12-02 02:01 (UTC)

Just a heads up, some vendored packages requires were changed, so the CRYSTAL_PATH should be updated to:


omarroth commented on 2019-08-02 20:40 (UTC) (edited on 2019-08-02 20:41 (UTC) by omarroth)

For the latest version of Crystal:

diff --git a/PKGBUILD b/PKGBUILD
index d7647aa..46fed3b 100644
@@ -5,2 +5,2 @@ pkgname=crystal-git
@@ -13 +13 @@ depends=('gc' 'libatomic_ops' 'pcre' 'libevent')
-makedepends=('git' 'libxml2' 'llvm6')
+makedepends=('git' 'libxml2' 'llvm')
@@ -79,2 +79,2 @@ sha256sums=('SKIP')

anatolik commented on 2017-01-25 01:09 (UTC)

Running tests in a build chroot gives following error: Failures: 1) Process find_executable searches within PATH Failure/Error: (path = Process.find_executable("crystal")).should_not be_nil expected: actual_value != nil got: nil # spec/std/ Finished in 11:24 minutes 11869 examples, 1 failures, 0 errors, 13 pending Failed examples: crystal spec spec/std/ # Process find_executable searches within PATH make: *** [Makefile:76: spec] Error 1 ==> ERROR: A failure occurred in check(). Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-i686/anatol/build

jhass commented on 2017-01-22 18:09 (UTC)

Crystal is self hosted, your package only works if you happen to have Crystal installed while building.

Zatherz commented on 2017-01-22 17:12 (UTC)

-git packages are supposed to pull the latest git master, not the latest release. Use this PKGBUILD:

bararchy commented on 2017-01-08 11:15 (UTC)

PKGBUILD for 0.20.4 # Maintainer: Jonne Haß <> # Contributor: Mikkel Kroman <> pkgname=crystal-git pkgver=0.20.4.r0.gd1f8c42f8 _last_release="0.20.4-1" pkgrel=1 pkgdesc="The Crystal Programming Language" arch=('i686' 'x86_64') url="" license=('Apache') depends=('gc' 'libatomic_ops' 'pcre' 'libevent') makedepends=('git' 'libxml2' 'llvm') checkdepends=('libyaml' 'libxml2' 'gmp' 'git' 'inetutils') optdepends=('shards: To make the crystal deps command work' 'libyaml: For YAML support' 'gmp: For BigInt support' 'libxml2: For XML support') conflicts=('crystal') provides=('crystal') source=("git+") source_i686+=("${_last_release/-*/}/${pkgname/-git/}-$_last_release-linux-i686.tar.gz") source_x86_64+=("${_last_release/-*/}/${pkgname/-git/}-$_last_release-linux-x86_64.tar.gz") pkgver() { cd "$srcdir/${pkgname/-git/}" ( set -o pipefail git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } build() { cd "$srcdir/${pkgname/-git/}" make release=1 \ PATH="$srcdir/${pkgname/-git/}-$_last_release/bin:$PATH" \ CRYSTAL_PATH="$srcdir/${pkgname/-git/}/src" \ CRYSTAL_CONFIG_PATH="lib:/usr/lib/crystal" \ CRYSTAL_CACHE_DIR="/tmp/crystal" make doc CRYSTAL_CACHE_DIR="/tmp/crystal" } check() { cd "$srcdir/${pkgname/-git/}" make spec \ CRYSTAL_PATH="$srcdir/${pkgname/-git/}/src" \ CRYSTAL_CONFIG_VERSION="$pkgver" \ CRYSTAL_CACHE_DIR="/tmp/crystal" } package() { cd "$srcdir/${pkgname/-git/}" # /usr/bin/crystal compiled executable # /usr/lib/crystal/ compiler src & core libs # /usr/share/doc/crystal/api/ api docs # /usr/share/doc/crystal/samples/ samples install -Dm755 ".build/crystal" "$pkgdir/usr/bin/crystal" install -dm755 "$pkgdir/usr/lib" cp -av src "$pkgdir/usr/lib/crystal" install -dm755 "$pkgdir/usr/share/doc/crystal" cp -av doc "$pkgdir/usr/share/doc/crystal/api" cp -av samples "$pkgdir/usr/share/doc/crystal/" install -Dm644 etc/completion.bash "$pkgdir/usr/share/bash-completion/completions/crystal" install -Dm644 etc/completion.zsh "$pkgdir/usr/share/zsh/site-functions/_crystal" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } sha256sums=('SKIP') sha256sums_i686=('85edfa1dda5e712341869bab87f6de0f7c6860e2a04dec2f00e8dc6aa1418611') sha256sums_x86_64=('cdc11c30235f8bd3b89e1fc13b56838f99d585715fb66563d6599026f5393e37')

jhass commented on 2016-04-04 10:01 (UTC)

Fixed, thanks!

oprypin commented on 2016-04-04 07:17 (UTC)

This doesn't seem right: source_x86_64+=("...-i686.tar.gz")

jhass commented on 2015-03-16 02:31 (UTC)

Right, and libevent is a dependency now too. I always forget to update this package until the next release :P

anatolik commented on 2015-03-16 00:54 (UTC)

It looks like libpcl is a hard dependency and have to be installed (i.e. it should be moved to depends= list)