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

Evangelos Foutras foutrelis at archlinux.org
Thu Sep 10 03:17:42 UTC 2015


    Date: Thursday, September 10, 2015 @ 05:17:42
  Author: foutrelis
Revision: 139725

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

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

-----------------------------------+
 community-staging-i686/PKGBUILD   |   64 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   64 ++++++++++++++++++++++++++++++++++++
 2 files changed, 128 insertions(+)

Copied: crystal/repos/community-staging-i686/PKGBUILD (from rev 139724, crystal/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-10 03:17:42 UTC (rev 139725)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Jonne Haß <me at jhass.eu>
+
+pkgname=crystal
+pkgver=0.7.7
+pkgrel=2
+_binary_rel=1
+pkgdesc='The Crystal Programming Language'
+arch=(i686 x86_64)
+url='http://crystal-lang.org'
+license=(Apache)
+depends=(libunwind gc llvm libatomic_ops pcre libpcl libevent)
+makedepends=(libxml2)
+checkdepends=(libyaml libxml2 gmp git)
+optdepends=('libyaml: For YAML support'
+            'gmp: For BigInt support'
+            'libxml2: For XML support')
+source=(crystal-$pkgver.tar.gz::https://github.com/manastech/crystal/archive/$pkgver.tar.gz)
+source_i686+=(https://github.com/manastech/crystal/releases/download/$pkgver/$pkgname-$pkgver-$_binary_rel-linux-i686.tar.gz)
+source_x86_64+=(https://github.com/manastech/crystal/releases/download/$pkgver/$pkgname-$pkgver-$_binary_rel-linux-x86_64.tar.gz)
+sha256sums=('5506f69ed59592666aa667a33ba90b07f1de2cc1ebeee25e771715f8521065f8')
+sha256sums_i686=('7a1ccdce29c1437da1cbaafa3fefd5ebc3c4b84b885964a6d4eaf8bfc5922831')
+sha256sums_x86_64=('433acbe8e88fe0c3df67ad64bd436349a6bcfc146284f0a690283ebefb93b5e6')
+
+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.zsh "$pkgdir/usr/share/zsh/site-functions/_crystal"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: crystal/repos/community-staging-x86_64/PKGBUILD (from rev 139724, crystal/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-10 03:17:42 UTC (rev 139725)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Jonne Haß <me at jhass.eu>
+
+pkgname=crystal
+pkgver=0.7.7
+pkgrel=2
+_binary_rel=1
+pkgdesc='The Crystal Programming Language'
+arch=(i686 x86_64)
+url='http://crystal-lang.org'
+license=(Apache)
+depends=(libunwind gc llvm libatomic_ops pcre libpcl libevent)
+makedepends=(libxml2)
+checkdepends=(libyaml libxml2 gmp git)
+optdepends=('libyaml: For YAML support'
+            'gmp: For BigInt support'
+            'libxml2: For XML support')
+source=(crystal-$pkgver.tar.gz::https://github.com/manastech/crystal/archive/$pkgver.tar.gz)
+source_i686+=(https://github.com/manastech/crystal/releases/download/$pkgver/$pkgname-$pkgver-$_binary_rel-linux-i686.tar.gz)
+source_x86_64+=(https://github.com/manastech/crystal/releases/download/$pkgver/$pkgname-$pkgver-$_binary_rel-linux-x86_64.tar.gz)
+sha256sums=('5506f69ed59592666aa667a33ba90b07f1de2cc1ebeee25e771715f8521065f8')
+sha256sums_i686=('7a1ccdce29c1437da1cbaafa3fefd5ebc3c4b84b885964a6d4eaf8bfc5922831')
+sha256sums_x86_64=('433acbe8e88fe0c3df67ad64bd436349a6bcfc146284f0a690283ebefb93b5e6')
+
+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.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