aboutsummaryrefslogtreecommitdiffstats
path: root/community/shards/APKBUILD
blob: 6f58f393bc0b93cfd673ec6f8fe563b1c6ad54ae (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=shards
pkgver=0.8.1
pkgrel=0
_minitestver=0.4.1
pkgdesc="Dependency manager for the Crystal language"
url="https://github.com/crystal-lang/shards"
arch="x86_64 aarch64"  # limited by crystal aport
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
	"
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
}

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="c0a8a8531a37e033c6d96ac36dd30dcd3d005c6b1bd7c94dbeee7f6ea9b34a08ab2e14b826c3c18f60dca991f60ec6780df090cafc32403a7272e39dc07e99df  shards-0.8.1.tar.gz
3e17bca0b2f9ad5b575f9996bb8056e087dc69b5ea53b81b647dfe15a4f43c40c3b1e06fc0c52d9bf9279f58f35a754b68c58c84e86a2ddbbfc9826349d47957  minitest.cr-0.4.1.tar.gz"