[arch-commits] Commit in crystal/repos/community-x86_64 (PKGBUILD PKGBUILD)
Anatol Pomozov
anatolik at archlinux.org
Wed Dec 20 18:17:13 UTC 2017
Date: Wednesday, December 20, 2017 @ 18:17:12
Author: anatolik
Revision: 275042
archrelease: copy trunk to community-x86_64
Added:
crystal/repos/community-x86_64/PKGBUILD
(from rev 275041, crystal/trunk/PKGBUILD)
Deleted:
crystal/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 149 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 71 insertions(+), 78 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-20 18:16:39 UTC (rev 275041)
+++ PKGBUILD 2017-12-20 18:17:12 UTC (rev 275042)
@@ -1,78 +0,0 @@
-# $Id$
-# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
-# Contributor: Jonne Haß <me at jhass.eu>
-
-pkgname=crystal
-pkgver=0.24.0
-pkgrel=1
-_binary_rel=2
-pkgdesc='The Crystal Programming Language'
-arch=(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_x86_64+=(https://github.com/crystal-lang/crystal/releases/download/$pkgver/$pkgname-$pkgver-$_binary_rel-linux-x86_64.tar.gz)
-sha256sums=('c34f4326ee576f60b8960e331aae8d5265a12b30707582e1f5c6c6032d364a80')
-sha256sums_x86_64=('9cfdb67885aafb9781c678f20df4275c87365ebe0e9411e17dcb6f84e38e7498')
-
-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
-
- # We use --no-debug because it runs out of memory on i686 without it
- # https://github.com/crystal-lang/crystal/issues/3787#issuecomment-281591985
- make release=1 \
- FLAGS="--release --no-debug" \
- 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
-
- # disable tests as it fails with OOM at i686
- true || make spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
- CRYSTAL_CONFIG_VERSION="$pkgver" \
- CRYSTAL_CACHE_DIR="/tmp/crystal" \
- PATH=".build:$PATH"
-}
-
-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" "$pkgdir/usr/share/man/man1"
- cp -r src "$pkgdir/usr/lib/crystal"
-
- install -dm755 "$pkgdir/usr/share/doc/crystal"
- cp -r docs "$pkgdir/usr/share/doc/crystal/api"
- cp -r samples "$pkgdir/usr/share/doc/crystal/"
-
- install -Dm644 man/crystal.1 "$pkgdir/usr/share/man/man1/"
-
- 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-x86_64/PKGBUILD (from rev 275041, crystal/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2017-12-20 18:17:12 UTC (rev 275042)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Jonne Haß <me at jhass.eu>
+
+pkgname=crystal
+pkgver=0.24.1
+pkgrel=1
+pkgdesc='The Crystal Programming Language'
+arch=(x86_64)
+url='http://crystal-lang.org'
+license=(Apache)
+depends=(gc libatomic_ops pcre libevent llvm-libs)
+makedepends=(libxml2 llvm crystal) # to compile version N we need crystal compiler of N-1 version
+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)
+sha256sums=('4999a4d2a9ffc7bfbea8351b97057c3a135c2091cbd518e5c22ea7f5392b67d8')
+
+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 \
+ FLAGS="--release --no-debug" \
+ CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+ CRYSTAL_CONFIG_VERSION="$pkgver" \
+ CRYSTAL_CONFIG_PATH="lib:/usr/lib/crystal" \
+ CRYSTAL_CACHE_DIR="/tmp/crystal"
+ make docs CRYSTAL_CACHE_DIR="/tmp/crystal"
+}
+
+check() {
+ cd $pkgname-$pkgver
+
+ make spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+ CRYSTAL_CONFIG_VERSION="$pkgver" \
+ CRYSTAL_CACHE_DIR="/tmp/crystal" \
+ PATH=".build:$PATH"
+}
+
+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" "$pkgdir/usr/share/man/man1"
+ cp -r src "$pkgdir/usr/lib/crystal"
+
+ install -dm755 "$pkgdir/usr/share/doc/crystal"
+ cp -r docs "$pkgdir/usr/share/doc/crystal/api"
+ cp -r samples "$pkgdir/usr/share/doc/crystal/"
+
+ install -Dm644 man/crystal.1 "$pkgdir/usr/share/man/man1/"
+
+ 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