[arch-commits] Commit in crystal/repos (2 files)

2022-06-22 Thread Anatol Pomozov via arch-commits
Date: Wednesday, June 22, 2022 @ 19:29:41
  Author: anatolik
Revision: 1239032

archrelease: copy trunk to community-staging-x86_64

Added:
  crystal/repos/community-staging-x86_64/
  crystal/repos/community-staging-x86_64/PKGBUILD
(from rev 1239031, crystal/trunk/PKGBUILD)

--+
 PKGBUILD |   66 +
 1 file changed, 66 insertions(+)

Copied: crystal/repos/community-staging-x86_64/PKGBUILD (from rev 1239031, 
crystal/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-06-22 19:29:41 UTC (rev 1239032)
@@ -0,0 +1,66 @@
+# Maintainer: Anatol Pomozov 
+# Contributor: Jonne Haß 
+
+pkgname=crystal
+pkgver=1.4.1
+pkgrel=2
+pkgdesc='The Crystal Programming Language'
+arch=(x86_64)
+url='https://crystal-lang.org'
+license=(Apache)
+depends=(gc pcre libevent llvm-libs)
+makedepends=(libxml2 llvm crystal llvm13-libs) # to compile version N we need 
crystal compiler of N-1 version
+checkdepends=(libyaml libxml2 gmp inetutils git)
+optdepends=('shards: crystal language package manager'
+'libyaml: For YAML support'
+'gmp: For BigInt support'
+'libxml2: For XML support')
+source=(crystal-$pkgver.tar.gz::https://github.com/crystal-lang/crystal/archive/$pkgver.tar.gz)
+sha256sums=('97466656adede19943619e18af030c1d542c2c3dd1f36f3a422310bd8b53f5e0')
+
+build() {
+  cd $pkgname-$pkgver
+
+  make release=1 \
+   FLAGS="--release --no-debug" \
+   CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+   CRYSTAL_CONFIG_VERSION="$pkgver" \
+   CRYSTAL_CONFIG_PATH="lib:/usr/lib/crystal" \
+   CRYSTAL_CACHE_DIR="/tmp/crystal"
+  make docs CRYSTAL_CACHE_DIR="/tmp/crystal"
+}
+
+check() {
+  cd $pkgname-$pkgver
+  return # tests require too much RAM, disable it temporary
+
+  make spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+CRYSTAL_CONFIG_VERSION="$pkgver" \
+CRYSTAL_CACHE_DIR="/tmp/crystal" \
+PATH=".build:$PATH"
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  # /usr/bin/crystalcompiled 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" "$pkgdir/usr/share/man/man1"
+  cp -r src "$pkgdir/usr/lib/crystal"
+
+  install -dm755 "$pkgdir/usr/share/doc/crystal"
+  cp -r docs "$pkgdir/usr/share/doc/crystal/api"
+  cp -r samples "$pkgdir/usr/share/doc/crystal/"
+
+  install -Dm644 man/crystal.1 "$pkgdir/usr/share/man/man1/"
+
+  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"
+}



[arch-commits] Commit in crystal/repos (2 files)

2022-04-07 Thread Anatol Pomozov via arch-commits
Date: Thursday, April 7, 2022 @ 20:35:18
  Author: anatolik
Revision: 1182844

archrelease: copy trunk to community-testing-x86_64

Added:
  crystal/repos/community-testing-x86_64/
  crystal/repos/community-testing-x86_64/PKGBUILD
(from rev 1182843, crystal/trunk/PKGBUILD)

--+
 PKGBUILD |   66 +
 1 file changed, 66 insertions(+)

Copied: crystal/repos/community-testing-x86_64/PKGBUILD (from rev 1182843, 
crystal/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-04-07 20:35:18 UTC (rev 1182844)
@@ -0,0 +1,66 @@
+# Maintainer: Anatol Pomozov 
+# Contributor: Jonne Haß 
+
+pkgname=crystal
+pkgver=1.4.0
+pkgrel=1
+pkgdesc='The Crystal Programming Language'
+arch=(x86_64)
+url='https://crystal-lang.org'
+license=(Apache)
+depends=(gc libatomic_ops pcre libevent llvm-libs)
+makedepends=(libxml2 llvm crystal) # to compile version N we need crystal 
compiler of N-1 version
+checkdepends=(libyaml libxml2 gmp inetutils git)
+optdepends=('shards: crystal language package manager'
+'libyaml: For YAML support'
+'gmp: For BigInt support'
+'libxml2: For XML support')
+source=(crystal-$pkgver.tar.gz::https://github.com/crystal-lang/crystal/archive/$pkgver.tar.gz)
+sha256sums=('543443a253fe338d0dec4f4158d728806a8db65bdd4bf3dbe3d0afcd1361b495')
+
+build() {
+  cd $pkgname-$pkgver
+
+  make release=1 \
+   FLAGS="--release --no-debug" \
+   CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+   CRYSTAL_CONFIG_VERSION="$pkgver" \
+   CRYSTAL_CONFIG_PATH="lib:/usr/lib/crystal" \
+   CRYSTAL_CACHE_DIR="/tmp/crystal"
+  make docs CRYSTAL_CACHE_DIR="/tmp/crystal"
+}
+
+check() {
+  cd $pkgname-$pkgver
+  return # tests require too much RAM, disable it temporary
+
+  make spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+CRYSTAL_CONFIG_VERSION="$pkgver" \
+CRYSTAL_CACHE_DIR="/tmp/crystal" \
+PATH=".build:$PATH"
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  # /usr/bin/crystalcompiled 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" "$pkgdir/usr/share/man/man1"
+  cp -r src "$pkgdir/usr/lib/crystal"
+
+  install -dm755 "$pkgdir/usr/share/doc/crystal"
+  cp -r docs "$pkgdir/usr/share/doc/crystal/api"
+  cp -r samples "$pkgdir/usr/share/doc/crystal/"
+
+  install -Dm644 man/crystal.1 "$pkgdir/usr/share/man/man1/"
+
+  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"
+}



[arch-commits] Commit in crystal/repos (2 files)

2022-01-18 Thread Anatol Pomozov via arch-commits
Date: Tuesday, January 18, 2022 @ 17:32:24
  Author: anatolik
Revision: 1109292

archrelease: copy trunk to community-testing-x86_64

Added:
  crystal/repos/community-testing-x86_64/
  crystal/repos/community-testing-x86_64/PKGBUILD
(from rev 1109291, crystal/trunk/PKGBUILD)

--+
 PKGBUILD |   66 +
 1 file changed, 66 insertions(+)

Copied: crystal/repos/community-testing-x86_64/PKGBUILD (from rev 1109291, 
crystal/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-01-18 17:32:24 UTC (rev 1109292)
@@ -0,0 +1,66 @@
+# Maintainer: Anatol Pomozov 
+# Contributor: Jonne Haß 
+
+pkgname=crystal
+pkgver=1.3.1
+pkgrel=1
+pkgdesc='The Crystal Programming Language'
+arch=(x86_64)
+url='https://crystal-lang.org'
+license=(Apache)
+depends=(gc libatomic_ops pcre libevent llvm-libs)
+makedepends=(libxml2 llvm crystal) # to compile version N we need crystal 
compiler of N-1 version
+checkdepends=(libyaml libxml2 gmp inetutils git)
+optdepends=('shards: crystal language package manager'
+'libyaml: For YAML support'
+'gmp: For BigInt support'
+'libxml2: For XML support')
+source=(crystal-$pkgver.tar.gz::https://github.com/crystal-lang/crystal/archive/$pkgver.tar.gz)
+sha256sums=('64ed3331c91e3d7f1fc7b3d111fc79faf9f7a55a6fdebc2cd8001a5ee93d787b')
+
+build() {
+  cd $pkgname-$pkgver
+
+  make release=1 \
+   FLAGS="--release --no-debug" \
+   CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+   CRYSTAL_CONFIG_VERSION="$pkgver" \
+   CRYSTAL_CONFIG_PATH="lib:/usr/lib/crystal" \
+   CRYSTAL_CACHE_DIR="/tmp/crystal"
+  make docs CRYSTAL_CACHE_DIR="/tmp/crystal"
+}
+
+check() {
+  cd $pkgname-$pkgver
+  return # tests require too much RAM, disable it temporary
+
+  make spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+CRYSTAL_CONFIG_VERSION="$pkgver" \
+CRYSTAL_CACHE_DIR="/tmp/crystal" \
+PATH=".build:$PATH"
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  # /usr/bin/crystalcompiled 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" "$pkgdir/usr/share/man/man1"
+  cp -r src "$pkgdir/usr/lib/crystal"
+
+  install -dm755 "$pkgdir/usr/share/doc/crystal"
+  cp -r docs "$pkgdir/usr/share/doc/crystal/api"
+  cp -r samples "$pkgdir/usr/share/doc/crystal/"
+
+  install -Dm644 man/crystal.1 "$pkgdir/usr/share/man/man1/"
+
+  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"
+}



[arch-commits] Commit in crystal/repos (2 files)

2021-11-13 Thread Anatol Pomozov via arch-commits
Date: Saturday, November 13, 2021 @ 20:24:59
  Author: anatolik
Revision: 1046072

archrelease: copy trunk to community-testing-x86_64

Added:
  crystal/repos/community-testing-x86_64/
  crystal/repos/community-testing-x86_64/PKGBUILD
(from rev 1046071, crystal/trunk/PKGBUILD)

--+
 PKGBUILD |   66 +
 1 file changed, 66 insertions(+)

Copied: crystal/repos/community-testing-x86_64/PKGBUILD (from rev 1046071, 
crystal/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-11-13 20:24:59 UTC (rev 1046072)
@@ -0,0 +1,66 @@
+# Maintainer: Anatol Pomozov 
+# Contributor: Jonne Haß 
+
+pkgname=crystal
+pkgver=1.2.2
+pkgrel=1
+pkgdesc='The Crystal Programming Language'
+arch=(x86_64)
+url='https://crystal-lang.org'
+license=(Apache)
+depends=(gc libatomic_ops pcre libevent llvm-libs)
+makedepends=(libxml2 llvm crystal) # to compile version N we need crystal 
compiler of N-1 version
+checkdepends=(libyaml libxml2 gmp inetutils git)
+optdepends=('shards: crystal language package manager'
+'libyaml: For YAML support'
+'gmp: For BigInt support'
+'libxml2: For XML support')
+source=(crystal-$pkgver.tar.gz::https://github.com/crystal-lang/crystal/archive/$pkgver.tar.gz)
+sha256sums=('6d963a71ef5f6c73faa272a0f81b50e9ddbf814b1ec07e557ce5c95f84d6077e')
+
+build() {
+  cd $pkgname-$pkgver
+
+  make release=1 \
+   FLAGS="--release --no-debug" \
+   CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+   CRYSTAL_CONFIG_VERSION="$pkgver" \
+   CRYSTAL_CONFIG_PATH="lib:/usr/lib/crystal" \
+   CRYSTAL_CACHE_DIR="/tmp/crystal"
+  make docs CRYSTAL_CACHE_DIR="/tmp/crystal"
+}
+
+check() {
+  cd $pkgname-$pkgver
+  return # tests require too much RAM, disable it temporary
+
+  make spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+CRYSTAL_CONFIG_VERSION="$pkgver" \
+CRYSTAL_CACHE_DIR="/tmp/crystal" \
+PATH=".build:$PATH"
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  # /usr/bin/crystalcompiled 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" "$pkgdir/usr/share/man/man1"
+  cp -r src "$pkgdir/usr/lib/crystal"
+
+  install -dm755 "$pkgdir/usr/share/doc/crystal"
+  cp -r docs "$pkgdir/usr/share/doc/crystal/api"
+  cp -r samples "$pkgdir/usr/share/doc/crystal/"
+
+  install -Dm644 man/crystal.1 "$pkgdir/usr/share/man/man1/"
+
+  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"
+}



[arch-commits] Commit in crystal/repos (2 files)

2021-10-24 Thread Evangelos Foutras via arch-commits
Date: Sunday, October 24, 2021 @ 23:57:58
  Author: foutrelis
Revision: 1033277

archrelease: copy trunk to community-staging-x86_64

Added:
  crystal/repos/community-staging-x86_64/
  crystal/repos/community-staging-x86_64/PKGBUILD
(from rev 1033276, crystal/trunk/PKGBUILD)

--+
 PKGBUILD |   66 +
 1 file changed, 66 insertions(+)

Copied: crystal/repos/community-staging-x86_64/PKGBUILD (from rev 1033276, 
crystal/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-10-24 23:57:58 UTC (rev 1033277)
@@ -0,0 +1,66 @@
+# Maintainer: Anatol Pomozov 
+# Contributor: Jonne Haß 
+
+pkgname=crystal
+pkgver=1.2.1
+pkgrel=2
+pkgdesc='The Crystal Programming Language'
+arch=(x86_64)
+url='https://crystal-lang.org'
+license=(Apache)
+depends=(gc libatomic_ops pcre libevent llvm12-libs)
+makedepends=(libxml2 llvm12 crystal) # to compile version N we need crystal 
compiler of N-1 version
+checkdepends=(libyaml libxml2 gmp inetutils git)
+optdepends=('shards: crystal language package manager'
+'libyaml: For YAML support'
+'gmp: For BigInt support'
+'libxml2: For XML support')
+source=(crystal-$pkgver.tar.gz::https://github.com/crystal-lang/crystal/archive/$pkgver.tar.gz)
+sha256sums=('fd35d4a9b97d5085afd3276693605f59c452c7ab3fd940af9cd4f72faf4c3aa6')
+
+build() {
+  cd $pkgname-$pkgver
+
+  make release=1 \
+   FLAGS="--release --no-debug" \
+   CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+   CRYSTAL_CONFIG_VERSION="$pkgver" \
+   CRYSTAL_CONFIG_PATH="lib:/usr/lib/crystal" \
+   CRYSTAL_CACHE_DIR="/tmp/crystal"
+  make docs CRYSTAL_CACHE_DIR="/tmp/crystal"
+}
+
+check() {
+  cd $pkgname-$pkgver
+  return # tests require too much RAM, disable it temporary
+
+  make spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+CRYSTAL_CONFIG_VERSION="$pkgver" \
+CRYSTAL_CACHE_DIR="/tmp/crystal" \
+PATH=".build:$PATH"
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  # /usr/bin/crystalcompiled 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" "$pkgdir/usr/share/man/man1"
+  cp -r src "$pkgdir/usr/lib/crystal"
+
+  install -dm755 "$pkgdir/usr/share/doc/crystal"
+  cp -r docs "$pkgdir/usr/share/doc/crystal/api"
+  cp -r samples "$pkgdir/usr/share/doc/crystal/"
+
+  install -Dm644 man/crystal.1 "$pkgdir/usr/share/man/man1/"
+
+  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"
+}



[arch-commits] Commit in crystal/repos (2 files)

2021-07-19 Thread Anatol Pomozov via arch-commits
Date: Monday, July 19, 2021 @ 16:24:34
  Author: anatolik
Revision: 978799

archrelease: copy trunk to community-testing-x86_64

Added:
  crystal/repos/community-testing-x86_64/
  crystal/repos/community-testing-x86_64/PKGBUILD
(from rev 978798, crystal/trunk/PKGBUILD)

--+
 PKGBUILD |   68 +
 1 file changed, 68 insertions(+)

Copied: crystal/repos/community-testing-x86_64/PKGBUILD (from rev 978798, 
crystal/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-07-19 16:24:34 UTC (rev 978799)
@@ -0,0 +1,68 @@
+# Maintainer: Anatol Pomozov 
+# Contributor: Jonne Haß 
+
+pkgname=crystal
+pkgver=1.1.0
+pkgrel=1
+pkgdesc='The Crystal Programming Language'
+arch=(x86_64)
+url='https://crystal-lang.org'
+license=(Apache)
+depends=(gc libatomic_ops pcre libevent llvm10-libs)
+makedepends=(libxml2 llvm10 crystal) # to compile version N we need crystal 
compiler of N-1 version
+checkdepends=(libyaml libxml2 gmp inetutils git)
+optdepends=('shards: crystal language package manager'
+'libyaml: For YAML support'
+'gmp: For BigInt support'
+'libxml2: For XML support')
+source=(crystal-$pkgver.tar.gz::https://github.com/crystal-lang/crystal/archive/$pkgver.tar.gz)
+sha256sums=('7475f699dd64dcc2cf126feddf3eeffb426e1df2e8d80547df0540eaa1775170')
+
+# LLVM 11 support is not complete 
https://github.com/crystal-lang/crystal/issues/10359
+
+build() {
+  cd $pkgname-$pkgver
+
+  make release=1 \
+   FLAGS="--release --no-debug" \
+   CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+   CRYSTAL_CONFIG_VERSION="$pkgver" \
+   CRYSTAL_CONFIG_PATH="lib:/usr/lib/crystal" \
+   CRYSTAL_CACHE_DIR="/tmp/crystal"
+  make docs CRYSTAL_CACHE_DIR="/tmp/crystal"
+}
+
+check() {
+  cd $pkgname-$pkgver
+  return # tests require too much RAM, disable it temporary
+
+  make spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+CRYSTAL_CONFIG_VERSION="$pkgver" \
+CRYSTAL_CACHE_DIR="/tmp/crystal" \
+PATH=".build:$PATH"
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  # /usr/bin/crystalcompiled 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" "$pkgdir/usr/share/man/man1"
+  cp -r src "$pkgdir/usr/lib/crystal"
+
+  install -dm755 "$pkgdir/usr/share/doc/crystal"
+  cp -r docs "$pkgdir/usr/share/doc/crystal/api"
+  cp -r samples "$pkgdir/usr/share/doc/crystal/"
+
+  install -Dm644 man/crystal.1 "$pkgdir/usr/share/man/man1/"
+
+  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"
+}



[arch-commits] Commit in crystal/repos (2 files)

2021-03-23 Thread Anatol Pomozov via arch-commits
Date: Tuesday, March 23, 2021 @ 17:49:01
  Author: anatolik
Revision: 900582

archrelease: copy trunk to community-testing-x86_64

Added:
  crystal/repos/community-testing-x86_64/
  crystal/repos/community-testing-x86_64/PKGBUILD
(from rev 900581, crystal/trunk/PKGBUILD)

--+
 PKGBUILD |   68 +
 1 file changed, 68 insertions(+)

Copied: crystal/repos/community-testing-x86_64/PKGBUILD (from rev 900581, 
crystal/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-03-23 17:49:01 UTC (rev 900582)
@@ -0,0 +1,68 @@
+# Maintainer: Anatol Pomozov 
+# Contributor: Jonne Haß 
+
+pkgname=crystal
+pkgver=1.0.0
+pkgrel=1
+pkgdesc='The Crystal Programming Language'
+arch=(x86_64)
+url='https://crystal-lang.org'
+license=(Apache)
+depends=(gc libatomic_ops pcre libevent llvm10-libs)
+makedepends=(libxml2 llvm10 crystal) # to compile version N we need crystal 
compiler of N-1 version
+checkdepends=(libyaml libxml2 gmp inetutils git)
+optdepends=('shards: crystal language package manager'
+'libyaml: For YAML support'
+'gmp: For BigInt support'
+'libxml2: For XML support')
+source=(crystal-$pkgver.tar.gz::https://github.com/crystal-lang/crystal/archive/$pkgver.tar.gz)
+sha256sums=('6b85c9139a891732c1f10638030635ff9dbe4e6818cad81a5dbd72db40913019')
+
+# LLVM 11 support pending: https://github.com/crystal-lang/crystal/issues/9809
+
+build() {
+  cd $pkgname-$pkgver
+
+  make release=1 \
+   FLAGS="--release --no-debug" \
+   CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+   CRYSTAL_CONFIG_VERSION="$pkgver" \
+   CRYSTAL_CONFIG_PATH="lib:/usr/lib/crystal" \
+   CRYSTAL_CACHE_DIR="/tmp/crystal"
+  make docs CRYSTAL_CACHE_DIR="/tmp/crystal"
+}
+
+check() {
+  cd $pkgname-$pkgver
+  return # tests require too much RAM, disable it temporary
+
+  make spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+CRYSTAL_CONFIG_VERSION="$pkgver" \
+CRYSTAL_CACHE_DIR="/tmp/crystal" \
+PATH=".build:$PATH"
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  # /usr/bin/crystalcompiled 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" "$pkgdir/usr/share/man/man1"
+  cp -r src "$pkgdir/usr/lib/crystal"
+
+  install -dm755 "$pkgdir/usr/share/doc/crystal"
+  cp -r docs "$pkgdir/usr/share/doc/crystal/api"
+  cp -r samples "$pkgdir/usr/share/doc/crystal/"
+
+  install -Dm644 man/crystal.1 "$pkgdir/usr/share/man/man1/"
+
+  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"
+}


[arch-commits] Commit in crystal/repos (2 files)

2021-01-26 Thread Anatol Pomozov via arch-commits
Date: Tuesday, January 26, 2021 @ 22:50:57
  Author: anatolik
Revision: 831065

archrelease: copy trunk to community-testing-x86_64

Added:
  crystal/repos/community-testing-x86_64/
  crystal/repos/community-testing-x86_64/PKGBUILD
(from rev 831064, crystal/trunk/PKGBUILD)

--+
 PKGBUILD |   68 +
 1 file changed, 68 insertions(+)

Copied: crystal/repos/community-testing-x86_64/PKGBUILD (from rev 831064, 
crystal/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-01-26 22:50:57 UTC (rev 831065)
@@ -0,0 +1,68 @@
+# Maintainer: Anatol Pomozov 
+# Contributor: Jonne Haß 
+
+pkgname=crystal
+pkgver=0.36.0
+pkgrel=1
+pkgdesc='The Crystal Programming Language'
+arch=(x86_64)
+url='https://crystal-lang.org'
+license=(Apache)
+depends=(gc libatomic_ops pcre libevent llvm10-libs)
+makedepends=(libxml2 llvm10 crystal) # to compile version N we need crystal 
compiler of N-1 version
+checkdepends=(libyaml libxml2 gmp inetutils git)
+optdepends=('shards: crystal language package manager'
+'libyaml: For YAML support'
+'gmp: For BigInt support'
+'libxml2: For XML support')
+source=(crystal-$pkgver.tar.gz::https://github.com/crystal-lang/crystal/archive/$pkgver.tar.gz)
+sha256sums=('32ad927e78c4cc85e18136f70cfb9f1798edcc734de4d927b28f4de16c1456d3')
+
+# LLVM 11 support pending: https://github.com/crystal-lang/crystal/issues/9809
+
+build() {
+  cd $pkgname-$pkgver
+
+  make release=1 \
+   FLAGS="--release --no-debug" \
+   CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+   CRYSTAL_CONFIG_VERSION="$pkgver" \
+   CRYSTAL_CONFIG_PATH="lib:/usr/lib/crystal" \
+   CRYSTAL_CACHE_DIR="/tmp/crystal"
+  make docs CRYSTAL_CACHE_DIR="/tmp/crystal"
+}
+
+check() {
+  cd $pkgname-$pkgver
+  return # tests require too much RAM, disable it temporary
+
+  make spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+CRYSTAL_CONFIG_VERSION="$pkgver" \
+CRYSTAL_CACHE_DIR="/tmp/crystal" \
+PATH=".build:$PATH"
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  # /usr/bin/crystalcompiled 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" "$pkgdir/usr/share/man/man1"
+  cp -r src "$pkgdir/usr/lib/crystal"
+
+  install -dm755 "$pkgdir/usr/share/doc/crystal"
+  cp -r docs "$pkgdir/usr/share/doc/crystal/api"
+  cp -r samples "$pkgdir/usr/share/doc/crystal/"
+
+  install -Dm644 man/crystal.1 "$pkgdir/usr/share/man/man1/"
+
+  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"
+}