Date: Sunday, September 18, 2016 @ 09:48:10
  Author: anatolik
Revision: 189907

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 189906, crystal/trunk/PKGBUILD)
  crystal/repos/community-testing-x86_64/
  crystal/repos/community-testing-x86_64/PKGBUILD
    (from rev 189906, crystal/trunk/PKGBUILD)

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

Copied: crystal/repos/community-testing-i686/PKGBUILD (from rev 189906, 
crystal/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD                             (rev 0)
+++ community-testing-i686/PKGBUILD     2016-09-18 09:48:10 UTC (rev 189907)
@@ -0,0 +1,73 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomo...@gmail.com>
+# Contributor: Jonne Haß <m...@jhass.eu>
+
+pkgname=crystal
+pkgver=0.19.2
+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)
+makedepends=(libxml2 llvm)
+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)
+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=('18b8b847162529b1ea6e886ad2fbe344a1bcb22fd8b29cebedc5a827939d3819')
+sha256sums_i686=('14db11c6330e858b21fedfbecf6db5fb1c72dbcfe2682d86873bd8a8aef36ffa')
+sha256sums_x86_64=('dd767a90d7aafac3a00f26be4117f82435092ce2dca4ee1b85f5b95a518eb316')
+
+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" \
+       CRYSTAL_CACHE_DIR="/tmp/crystal"
+  make doc CRYSTAL_CACHE_DIR="/tmp/crystal"
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  make all_spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+            CRYSTAL_CONFIG_VERSION="$pkgver" \
+            CRYSTAL_CACHE_DIR="/tmp/crystal"
+}
+
+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 189906, 
crystal/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2016-09-18 09:48:10 UTC (rev 189907)
@@ -0,0 +1,73 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomo...@gmail.com>
+# Contributor: Jonne Haß <m...@jhass.eu>
+
+pkgname=crystal
+pkgver=0.19.2
+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)
+makedepends=(libxml2 llvm)
+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)
+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=('18b8b847162529b1ea6e886ad2fbe344a1bcb22fd8b29cebedc5a827939d3819')
+sha256sums_i686=('14db11c6330e858b21fedfbecf6db5fb1c72dbcfe2682d86873bd8a8aef36ffa')
+sha256sums_x86_64=('dd767a90d7aafac3a00f26be4117f82435092ce2dca4ee1b85f5b95a518eb316')
+
+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" \
+       CRYSTAL_CACHE_DIR="/tmp/crystal"
+  make doc CRYSTAL_CACHE_DIR="/tmp/crystal"
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  make all_spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+            CRYSTAL_CONFIG_VERSION="$pkgver" \
+            CRYSTAL_CACHE_DIR="/tmp/crystal"
+}
+
+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"
+}

Reply via email to