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

Anatol Pomozov anatolik at archlinux.org
Sun Apr 3 20:58:40 UTC 2016


    Date: Sunday, April 3, 2016 @ 22:58:39
  Author: anatolik
Revision: 169416

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

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

-----------------------------------+
 community-testing-i686/PKGBUILD   |   72 ++++++++++++++++++++++++++++++++++++
 community-testing-x86_64/PKGBUILD |   72 ++++++++++++++++++++++++++++++++++++
 2 files changed, 144 insertions(+)

Copied: crystal/repos/community-testing-i686/PKGBUILD (from rev 169415, crystal/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2016-04-03 20:58:39 UTC (rev 169416)
@@ -0,0 +1,72 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Jonne Haß <me at jhass.eu>
+
+pkgname=crystal
+pkgver=0.15.0
+pkgrel=1
+_binary_rel=1
+pkgdesc='The Crystal Programming Language'
+arch=(i686 x86_64)
+url='http://crystal-lang.org'
+license=(Apache)
+depends=(gc libatomic_ops pcre libevent libffi)
+# depend on previous llvm version until https://github.com/crystal-lang/crystal/issues/1614 is resolved
+makedepends=(libxml2 llvm35)
+checkdepends=(libyaml libxml2 gmp 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)
+source_i686+=(https://github.com/crystal-lang/crystal/releases/download/$pkgver/$pkgname-$pkgver-$_binary_rel-linux-i686.tar.gz)
+source_x86_64+=(https://github.com/crystal-lang/crystal/releases/download/$pkgver/$pkgname-$pkgver-$_binary_rel-linux-x86_64.tar.gz)
+sha256sums=('d79445ec92faa2a045af150fca4886d90ecd9fba27451003b68118c8714b26bd')
+sha256sums_i686=('438c2b6ae818d6eb9e685ba352bf1310d3baf64c01e80dd9676ce43b63c393c9')
+sha256sums_x86_64=('538d3e327a5237ac521c1053ca1d98565545c3e243dc6bf7298508ae1ff474ab')
+
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i 's|Please install shards: https://github.com/ysbaddaden/shards|Please install shards: pacman -S shards|' src/compiler/crystal/command.cr
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  make release=1 \
+       PATH="$srcdir/$pkgname-$pkgver-$_binary_rel/bin:$PATH" \
+       CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+       CRYSTAL_CONFIG_VERSION="$pkgver" \
+       CRYSTAL_CONFIG_PATH="libs:/usr/lib/crystal"
+  make doc
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  make spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+            CRYSTAL_CONFIG_VERSION="$pkgver"
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  # /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 -r src "$pkgdir/usr/lib/crystal"
+
+  install -dm755 "$pkgdir/usr/share/doc/crystal"
+  cp -r doc "$pkgdir/usr/share/doc/crystal/api"
+  cp -r 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"
+}

Copied: crystal/repos/community-testing-x86_64/PKGBUILD (from rev 169415, crystal/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2016-04-03 20:58:39 UTC (rev 169416)
@@ -0,0 +1,72 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Jonne Haß <me at jhass.eu>
+
+pkgname=crystal
+pkgver=0.15.0
+pkgrel=1
+_binary_rel=1
+pkgdesc='The Crystal Programming Language'
+arch=(i686 x86_64)
+url='http://crystal-lang.org'
+license=(Apache)
+depends=(gc libatomic_ops pcre libevent libffi)
+# depend on previous llvm version until https://github.com/crystal-lang/crystal/issues/1614 is resolved
+makedepends=(libxml2 llvm35)
+checkdepends=(libyaml libxml2 gmp 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)
+source_i686+=(https://github.com/crystal-lang/crystal/releases/download/$pkgver/$pkgname-$pkgver-$_binary_rel-linux-i686.tar.gz)
+source_x86_64+=(https://github.com/crystal-lang/crystal/releases/download/$pkgver/$pkgname-$pkgver-$_binary_rel-linux-x86_64.tar.gz)
+sha256sums=('d79445ec92faa2a045af150fca4886d90ecd9fba27451003b68118c8714b26bd')
+sha256sums_i686=('438c2b6ae818d6eb9e685ba352bf1310d3baf64c01e80dd9676ce43b63c393c9')
+sha256sums_x86_64=('538d3e327a5237ac521c1053ca1d98565545c3e243dc6bf7298508ae1ff474ab')
+
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i 's|Please install shards: https://github.com/ysbaddaden/shards|Please install shards: pacman -S shards|' src/compiler/crystal/command.cr
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  make release=1 \
+       PATH="$srcdir/$pkgname-$pkgver-$_binary_rel/bin:$PATH" \
+       CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+       CRYSTAL_CONFIG_VERSION="$pkgver" \
+       CRYSTAL_CONFIG_PATH="libs:/usr/lib/crystal"
+  make doc
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  make spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+            CRYSTAL_CONFIG_VERSION="$pkgver"
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  # /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 -r src "$pkgdir/usr/lib/crystal"
+
+  install -dm755 "$pkgdir/usr/share/doc/crystal"
+  cp -r doc "$pkgdir/usr/share/doc/crystal/api"
+  cp -r 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"
+}



More information about the arch-commits mailing list