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

Evangelos Foutras foutrelis at archlinux.org
Tue Aug 6 04:12:45 UTC 2019


    Date: Tuesday, August 6, 2019 @ 04:12:45
  Author: foutrelis
Revision: 497571

archrelease: copy trunk to community-staging-x86_64

Added:
  shards/repos/community-staging-x86_64/
  shards/repos/community-staging-x86_64/PKGBUILD
    (from rev 497570, shards/trunk/PKGBUILD)

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

Copied: shards/repos/community-staging-x86_64/PKGBUILD (from rev 497570, shards/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-08-06 04:12:45 UTC (rev 497571)
@@ -0,0 +1,34 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Jonne Haß <me at jhass.eu>
+
+pkgname=shards
+pkgver=0.9.0
+pkgrel=2
+pkgdesc='The package manager for the Crystal language'
+arch=(x86_64)
+url='https://github.com/crystal-lang/shards'
+license=(Apache)
+depends=(libyaml git pcre libevent gc)
+makedepends=(crystal)
+source=(shards-$pkgver.tar.gz::https://github.com/crystal-lang/shards/archive/v$pkgver.tar.gz)
+sha256sums=('90f230c87cc7b94ca845e6fe34f2523edcadb562d715daaf98603edfa2a94d65')
+
+build() {
+  cd shards-$pkgver
+  crystal build --release -o bin/shards src/shards.cr
+}
+
+check() {
+  cd shards-$pkgver
+  ./bin/shards install
+  # currently tests fail because they try to write to read-only directory
+  #make test
+}
+
+package() {
+  cd shards-$pkgver
+
+  install -Dm755 bin/shards "$pkgdir/usr/bin/shards"
+  install -Dm755 man/shards.1 "$pkgdir/usr/share/man/man1/shards.1"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list