[arch-commits] Commit in crystal/repos (4 files)
Anatol Pomozov
anatolik at archlinux.org
Mon Dec 26 17:02:20 UTC 2016
Date: Monday, December 26, 2016 @ 17:02:19
Author: anatolik
Revision: 202781
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 202780, crystal/trunk/PKGBUILD)
crystal/repos/community-testing-x86_64/
crystal/repos/community-testing-x86_64/PKGBUILD
(from rev 202780, 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 202780, crystal/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2016-12-26 17:02:19 UTC (rev 202781)
@@ -0,0 +1,73 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Jonne Haß <me at jhass.eu>
+
+pkgname=crystal
+pkgver=0.20.3
+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 llvm-libs)
+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=('5372ba2a35d885345207047a51b9389f9190fd12389847e7f7298618bcf59ad6')
+sha256sums_i686=('85edfa1dda5e712341869bab87f6de0f7c6860e2a04dec2f00e8dc6aa1418611')
+sha256sums_x86_64=('c656dc8092a6161262f527df441aaab4ea9dd9a836a013f7155c6378b26b8cd7')
+
+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="lib:/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 202780, crystal/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2016-12-26 17:02:19 UTC (rev 202781)
@@ -0,0 +1,73 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Jonne Haß <me at jhass.eu>
+
+pkgname=crystal
+pkgver=0.20.3
+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 llvm-libs)
+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=('5372ba2a35d885345207047a51b9389f9190fd12389847e7f7298618bcf59ad6')
+sha256sums_i686=('85edfa1dda5e712341869bab87f6de0f7c6860e2a04dec2f00e8dc6aa1418611')
+sha256sums_x86_64=('c656dc8092a6161262f527df441aaab4ea9dd9a836a013f7155c6378b26b8cd7')
+
+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="lib:/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"
+}
More information about the arch-commits
mailing list