Date: Friday, March 25, 2022 @ 02:13:40 Author: anatolik Revision: 1176169
archrelease: copy trunk to community-testing-x86_64 Added: shards/repos/community-testing-x86_64/ shards/repos/community-testing-x86_64/PKGBUILD (from rev 1176168, shards/trunk/PKGBUILD) ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Copied: shards/repos/community-testing-x86_64/PKGBUILD (from rev 1176168, shards/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-03-25 02:13:40 UTC (rev 1176169) @@ -0,0 +1,37 @@ +# Maintainer: Anatol Pomozov <anatol.pomo...@gmail.com> +# Contributor: Jonne Haß <m...@jhass.eu> + +pkgname=shards +pkgver=0.17.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 mercurial fossil) +source=(shards-$pkgver.tar.gz::https://github.com/crystal-lang/shards/archive/v$pkgver.tar.gz) +sha256sums=('b3f0a2261437b21b3e2465b7755edf0c33f0305a112bd9a36e1b3ec74f96b098') + +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 "y...@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" +}