aboutsummaryrefslogtreecommitdiffstats
path: root/community/shards/APKBUILD
blob: d1622e570d80bc1f109e8d1aa6cfc4d6788e1488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=shards
pkgver=0.10.0
pkgrel=0
_minitestver=0.5.0
_molinillover=0.1.0
pkgdesc="Dependency manager for the Crystal language"
url="https://github.com/crystal-lang/shards"
arch="x86_64"  # limited by crystal aport
options="!check" # check fail with crystal version 0.31.1
license="Apache-2.0"
depends="crystal git"
makedepends="yaml-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/crystal-lang/$pkgname/archive/v$pkgver.tar.gz
	minitest.cr-$_minitestver.tar.gz::https://github.com/ysbaddaden/minitest.cr/archive/v$_minitestver.tar.gz
	molinillo-$_molinillover.tar.gz::https://github.com/crystal-lang/crystal-molinillo/archive/v$_molinillover.tar.gz
	"
builddir="$srcdir/$pkgname-$pkgver"

export CRYSTAL_CACHE_DIR="$srcdir/.cache"

prepare() {
	default_prepare
	cd "$builddir"

	mkdir -p lib
	ln -s ../../minitest.cr-$_minitestver lib/minitest
	ln -s ../../crystal-molinillo-$_molinillover lib/molinillo
}

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	export EMAIL="Test User <user@example.com>"
	make test_integration
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir" PREFIX=/usr
}

sha512sums="8d41a2553fd99bd44a3e8a9aacbd17f2a1e9f8730f90c4682091e8d2a4f2388818bdfc4e4bf654c3cbebd617a74474fb63f1fb86a62998cf79409d4778649757  shards-0.10.0.tar.gz
ecd0661340f4d5fa61a730c0ad4e9b8463fe5df32a54c979f28dfe663ed2e40ff19b212e18bb81c89275039474f8ec1072b3c2c5fdf5396973f8a9f641b653cb  minitest.cr-0.5.0.tar.gz
8d74d95896cd7ff510c87e2ffba6ae5f04ceeddde574930ee609851312b65d713a315cc24f9aa3fab02f9447ccb25ef2dd2e8179640b8c5cfb3d7d6b52d1ded5  molinillo-0.1.0.tar.gz"