New package: crystal-bin-0.24.0

This commit is contained in:
lvmbdv 2017-12-07 23:22:07 +03:00 committed by Toyam Cox
parent c08ed6d094
commit 5e556d055f
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#!/bin/sh
export CRYSTAL_PATH=/usr/lib/crystal
/usr/bin/crystal-bin $@

View file

@ -0,0 +1,34 @@
# Template file for 'crystal-bin'
pkgname=crystal-bin
version=0.24.0
_binary_revision=2
revision=1
only_for_archs="i686 x86_64"
depends="gc gc-devel libatomic_ops pcre pcre-devel libevent libevent-devel llvm"
short_desc="The Crystal Programming Language - precompiled binaries"
maintainer="lvmbdv <ata.kuyumcu@protonmail.com>"
license="Apache-2.0"
homepage="https://crystal-lang.org/"
distfiles="https://github.com/crystal-lang/crystal/releases/download/0.24.0/crystal-${version}-${_binary_revision}-linux-${XBPS_TARGET_MACHINE}.tar.gz"
#conflicts="crystal"
checksum="9cfdb67885aafb9781c678f20df4275c87365ebe0e9411e17dcb6f84e38e7498"
nopie=yes
do_extract() {
tar xfz ${XBPS_SRCDISTDIR}/${pkgname}-${version}/crystal-${version}-${_binary_revision}-linux-${XBPS_TARGET_MACHINE}.tar.gz --strip-components=1 -C ${wrksrc}
}
do_install() {
vmkdir /usr/bin
vmkdir /usr/lib/crystal
vmkdir /usr/share/doc/crystal
vmkdir /usr/share/bash-completion/completions/crystal
vmkdir /usr/share/zsh/site-functions/_crystal
vcopy etc/completion.bash /usr/share/bash-completion/completions/crystal
vcopy etc/completion.zsh /usr/share/zsh/site-functions/_crystal
vcopy samples /usr/share/doc/crystal
install -m 755 ${FILESDIR}/crystal ${DESTDIR}/usr/bin
vcopy src/* /usr/lib/crystal
vbin embedded/bin/crystal crystal-bin
}