[arch-commits] Commit in shards/repos (2 files)

Anatol Pomozov anatolik at archlinux.org
Wed Jan 27 05:18:06 UTC 2021


    Date: Wednesday, January 27, 2021 @ 05:18:06
  Author: anatolik
Revision: 831577

archrelease: copy trunk to community-testing-x86_64

Added:
  shards/repos/community-testing-x86_64/
  shards/repos/community-testing-x86_64/PKGBUILD
    (from rev 831576, shards/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: shards/repos/community-testing-x86_64/PKGBUILD (from rev 831576, shards/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-01-27 05:18:06 UTC (rev 831577)
@@ -0,0 +1,37 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Jonne Haß <me at jhass.eu>
+
+pkgname=shards
+pkgver=0.13.0
+pkgrel=1
+pkgdesc='The package manager for the Crystal language'
+arch=(x86_64)
+url='https://github.com/crystal-lang/shards'
+license=(Apache)
+depends=(libyaml git libevent gc)
+makedepends=(crystal)
+checkdepends=(git)
+source=(shards-$pkgver.tar.gz::https://github.com/crystal-lang/shards/archive/v$pkgver.tar.gz)
+sha256sums=('82a496aa450624afceab79bd9f7e6e1a43de41f61095512d08c3a3063c4da723')
+
+build() {
+  cd shards-$pkgver
+  CRYSTAL_OPTS="--release" make
+}
+
+check() {
+  cd shards-$pkgver
+
+  # remove git config settings once https://github.com/crystal-lang/shards/issues/430 is fixed
+  git config --global user.email "you at example.com"
+  git config --global user.name "Your Name"
+  git config --global column.ui always
+
+  make test -j1 # -j1 is due to this bug https://github.com/crystal-lang/shards/issues/347
+}
+
+package() {
+  cd shards-$pkgver
+  PREFIX=/usr DESTDIR="$pkgdir" make install
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list