[arch-commits] Commit in crystal/repos (4 files)
Anatol Pomozov
anatolik at archlinux.org
Wed Aug 26 17:38:36 UTC 2015
Date: Wednesday, August 26, 2015 @ 19:38:36
Author: anatolik
Revision: 138794
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 138793, crystal/trunk/PKGBUILD)
crystal/repos/community-testing-x86_64/
crystal/repos/community-testing-x86_64/PKGBUILD
(from rev 138793, crystal/trunk/PKGBUILD)
-----------------------------------+
community-testing-i686/PKGBUILD | 70 ++++++++++++++++++++++++++++++++++++
community-testing-x86_64/PKGBUILD | 70 ++++++++++++++++++++++++++++++++++++
2 files changed, 140 insertions(+)
Copied: crystal/repos/community-testing-i686/PKGBUILD (from rev 138793, crystal/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2015-08-26 17:38:36 UTC (rev 138794)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Jonne Haß <me at jhass.eu>
+
+pkgname=crystal
+pkgver=0.7.6
+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=('28ba8fd5ccc43be6bfa8069ce2d61134a8fbed0332c81a2d49629b919d1de5b6')
+sha256sums_i686=('6f9d8d7bb3795c590c49fc7da33110ca9977323ff1bd61fbace589ddb44f57b0')
+sha256sums_x86_64=('5fd6781ecf7243d2a71ec9c1aa93ad6a1fadef0d231c329280720c271183c1ff')
+
+prepare() {
+ cd $pkgname-$pkgver
+ # socket tests are failing because getaddrinfo does not like our chroot environment
+ # Crystal 0.7.7 reimplemented getaddrinfo() that seems work in the chroot
+ # Remove troublesome test until 0.7.7 release
+ rm spec/std/socket_spec.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 -av src "$pkgdir/usr/lib/crystal"
+
+ install -dm755 "$pkgdir/usr/share/doc/crystal"
+ cp -av doc "$pkgdir/usr/share/doc/crystal/api"
+ cp -av samples "$pkgdir/usr/share/doc/crystal/"
+
+ install -Dm644 etc/completion.zsh "$pkgdir/usr/share/zsh/site-functions/_crystal"
+}
Copied: crystal/repos/community-testing-x86_64/PKGBUILD (from rev 138793, crystal/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2015-08-26 17:38:36 UTC (rev 138794)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Jonne Haß <me at jhass.eu>
+
+pkgname=crystal
+pkgver=0.7.6
+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=('28ba8fd5ccc43be6bfa8069ce2d61134a8fbed0332c81a2d49629b919d1de5b6')
+sha256sums_i686=('6f9d8d7bb3795c590c49fc7da33110ca9977323ff1bd61fbace589ddb44f57b0')
+sha256sums_x86_64=('5fd6781ecf7243d2a71ec9c1aa93ad6a1fadef0d231c329280720c271183c1ff')
+
+prepare() {
+ cd $pkgname-$pkgver
+ # socket tests are failing because getaddrinfo does not like our chroot environment
+ # Crystal 0.7.7 reimplemented getaddrinfo() that seems work in the chroot
+ # Remove troublesome test until 0.7.7 release
+ rm spec/std/socket_spec.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 -av src "$pkgdir/usr/lib/crystal"
+
+ install -dm755 "$pkgdir/usr/share/doc/crystal"
+ cp -av doc "$pkgdir/usr/share/doc/crystal/api"
+ cp -av samples "$pkgdir/usr/share/doc/crystal/"
+
+ install -Dm644 etc/completion.zsh "$pkgdir/usr/share/zsh/site-functions/_crystal"
+}
More information about the arch-commits
mailing list