[arch-commits] Commit in shards/repos (2 files)
Date: Sunday, June 21, 2020 @ 18:06:27 Author: anatolik Revision: 649855 archrelease: copy trunk to community-testing-x86_64 Added: shards/repos/community-testing-x86_64/ shards/repos/community-testing-x86_64/PKGBUILD (from rev 649854, shards/trunk/PKGBUILD) --+ PKGBUILD | 32 1 file changed, 32 insertions(+) Copied: shards/repos/community-testing-x86_64/PKGBUILD (from rev 649854, shards/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-06-21 18:06:27 UTC (rev 649855) @@ -0,0 +1,32 @@ +# Maintainer: Anatol Pomozov +# Contributor: Jonne Haß + +pkgname=shards +pkgver=0.11.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=('d1b58ec81c6acc2bf7ecad4e2868e05f74a57647318a167c7324f706b568bfff') + +build() { + cd shards-$pkgver + CRYSTAL_OPTS="--release" make +} + +check() { + cd shards-$pkgver + # tests are currently failing. TODO: fix it + # make test -j1 # 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" +}
[arch-commits] Commit in shards/repos (2 files)
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 +# Contributor: Jonne Haß + +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" +}