[arch-commits] Commit in shards/repos (2 files)
Anatol Pomozov
anatolik at archlinux.org
Tue Mar 23 17:48:25 UTC 2021
Date: Tuesday, March 23, 2021 @ 17:48:25
Author: anatolik
Revision: 900580
archrelease: copy trunk to community-testing-x86_64
Added:
shards/repos/community-testing-x86_64/
shards/repos/community-testing-x86_64/PKGBUILD
(from rev 900579, shards/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: shards/repos/community-testing-x86_64/PKGBUILD (from rev 900579, shards/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2021-03-23 17:48:25 UTC (rev 900580)
@@ -0,0 +1,37 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Jonne Haß <me at jhass.eu>
+
+pkgname=shards
+pkgver=0.14.1
+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=('040b080acb4d4d44bfe07897219fdcb7525f783e253d8878d8381bf78f13f328')
+
+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